0 Members and 3 Guests are viewing this topic.
Commands are as follows:/createparams:[pnum] (player number to create bullet at)[xoff] (x axis offset -# = left, +# = right)[yoff] (y axis offset -# = up, +# = down)[xvel] (x velocity -# = left, +# = right)[yvel] (y velocity -# = up, +# = down)[hitm] (hit multiplier)[type] (bullet type)[owns] (owner of bullet)command syntax example:/create 1 0 0 3 -5 100 4 1 (creates a m79 nade at player 1's location with no offsets, going up and right (player 1 ownes bullet))/spawnparams:[wnum] (object number to spawn)[pnum] (player number to spawn object at)[xoff] (x offset)[yoff] (y offset)command syntax example:/spawn 5 1 0 0 (spawns spas 12 @ player 1's location(no offsets))/forceparams:[pnum] (player number who's weaps to force)[prim] (primary weapon)[secd] (secondary weapon)[ammo] (Ammo to give, 0 is default)command syntax example:/force 1 10 5 0 (forces player1 to have minigun as primary and spas 12 as secondary with default ammo)/dodamageparams:[pnum] (player to damage)[dmgi] (damage integer)command syntax example:/dodamage 1 150 ("Perfect kill"'s player 1 (perfect kill is 150 damage, that's the minimal damage to kill a player in DoDamage))/moveparams:[pnum] (player to move)[tnum] (player to move to)[xoff] (x offset)[yoff] (y offset)command syntax example:/move 1 2 0 0 (moves player 1 to player 2 (no offsets)/killsparams:[pnum] (player who's kills to set)[kills] (new kills amount)command syntax example:/kills 1 5 (set's player 1's kills to 5)/active (might change to /toggle)params:[pnum] (player whos weap to toggle)[wnum] (weapon to toggle)[optn] (true for on or false for off)command syntax example:/active 1 5 false (sets player 1's spas to off in weap menu)/megaparams:[script] (script to use on all players)[script params] (script's params)command syntax examples:/mega move 1 0 0 (moves all players to player 1 (no offsets))/mega spawn 5 0 0 (spawns spas 12 at all players feet (no offsets))/mega active 1 false (turns deagles off for all players)full list:/create (params)/spawn (params)/force (params)/dodamage (params)/move (params)/kills (params)/active (params)/mega (params)
(sorry fistbox, mine is a "box" too)
Suggestions: you could make every player be able to do, like i mentioned,
you could make a /commands so that people could see the commands
you could add a /wepnums so thatyou could see what the numbers areyou could add a /playernums so that you could see what the player numbers are
Quote from: Kavukamari(sorry fistbox, mine is a "box" too)Original name and concept, eh >
Few thoughts:Use proper and more efficient variable declarations instead of loads of global variants
You'd preferably want exception handling to tell the player he's messing stuff up
Read up on the case statement and use that instead of the myriads of if's
Your code indentation is fugly, to say the least
Loops whose only intention is to handle players are better off with the iteration variable as a byte, seeing as it's a bit more memory efficient
There's no point in storing wether or not a player is active in an array, seeing as you could simply do GetPlayerStat(ID,'active') directly
Suggestions cont.:--how about a name like Com-Play, Complay or command play(those prolly stink, im just making random suggestions lol ) ? Maybe somthing like Free-command. you could also do something that sounds cool like F15 or XQ9. lol--im not sure wether u hav it already, but if not, how about a /tele (and, optionaly, a /mapcoords). /mapcoords would put u in spec mode, but tell u wat the coords are whereever ur mouse is (im like 90 percent sure thats impossible, but o well, just a suggestion) --this would be cheap if it could be used by anyone, but only used by admins, it could be cool. Im thinking a /spawnset that would let u choose were u wanna respawn every time. typeing /spawnset current or someting would make u respawn in the place u just wer. This would just be fun to hav.-- lastly, (sorry toumaz, its just such a cool concept) a /godmode on/off command.-- a /jam command that jams a certain player numbers gun. /unjam could also be used the same way. (by jam, i mean the reload bar stays in the same place and if is reloded, wont shoot.-- a /jamwep command that jams a certain GUN of all players. lets say 2 people have m79s./jamwep 7 makes both of their guns jam. that way u can temp deactivate guns while people still hav them. /unjam could also be used the same way.-- also, u could try to make commands a lil simpler
Soldat must hate me as it won't work It says the script loaded but I tried them all and nothing happened :S
/god: I will add this, but I will have a diff way then fistbox (OnPlayerDamage Result:=0) (hey toumaz, does result in onplayerdamage change damage done?)
Quote from: Diss on October 24, 2007, 05:10:56 pmSoldat must hate me as it won't work It says the script loaded but I tried them all and nothing happened :Smake sure ur admin ^^
Quote from: Toumaz on October 24, 2007, 07:45:28 amLoops whose only intention is to handle players are better off with the iteration variable as a byte, seeing as it's a bit more memory efficientI wouldn't be so sure about it. You _could_ gain 3 bytes, but they most probably end up unused anyway, to keep memory aligned to full words.