04.08.2011, 13:40
params is very useful, as it is used to check what is typed after the command, cmdtext can be used the same way by typing the length of the command:
These are commonly only used with 1 parameter command, then other scripting methods take place.
pawn Код:
if(cmdtext[5]) return //something
pawn Код:
if(strcmp(params,"hello") == 0) return SendClientMessage(playerid,-1,"The message you typed after the command was 'hello'"