16.09.2012, 13:45
Use sscanf.
an example to use Giveplayerid with it.
I hope this explains you the usage of giveplayerid.
an example to use Giveplayerid with it.
pawn Код:
CMD:mycommand(parameters) // our command
{ // starting bracket
new thisisplayerid,money; // NOTE: thisisplayerid is used as an example
if(sscanf(params,"ud",thisisplayerid,money)) return SendClientMessage(playerid,-1,"/mycommand [giveplayerid] [moniez]"); // our sscanf example, you can use this to apply function on players.
GivePlayerMoney(playerid,money); // Gives the specified playerid the money you write in /mycommand [giveplayerid] [money]
return 1; // returns true
} // close of bracket