Quote:
Originally Posted by MeDaKewlDude
you would need to do it like this"
pawn Код:
CMD:give(playerid,params[]) { if(!strcmp(params,"cash ",true,5))//5 is the length of "cash " { new ID,amount; if(sscanf(params[5],"dd",ID,amount))//make sure you have [(the length of "cash ")] after params { return SendClientMessage(playerid,0xFFAA00AA,"Usage: /give Cash (player ID) (Amount)"); } //code here return 1; } if(!strcmp(params,"keys ",true,5))//5 is the length of "keys " { new ID; if(sscanf(params[5],"d",ID))"dd"//make sure you have [(the length of "keys ")] after params { return SendClientMessage(playerid,0xFFAA00AA,"Usage: /give Keys (player ID)"); } //code here return 1; } return 0; }
|
Thanks for the help! +REP