GivePlayerID
#3

Use sscanf.
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
I hope this explains you the usage of giveplayerid.
Reply


Messages In This Thread
GivePlayerID - by Dixon_Smith - 16.09.2012, 13:40
Re: GivePlayerID - by C00K13M0N$73R - 16.09.2012, 13:41
Re: GivePlayerID - by AtItsMax - 16.09.2012, 13:45
Re: GivePlayerID - by Dixon_Smith - 16.09.2012, 13:45
Re: GivePlayerID - by AtItsMax - 16.09.2012, 13:48
Re: GivePlayerID - by Dixon_Smith - 16.09.2012, 13:48
Re: GivePlayerID - by Dixon_Smith - 16.09.2012, 13:54
Re: GivePlayerID - by AtItsMax - 16.09.2012, 13:55
Re: GivePlayerID - by Lordzy - 16.09.2012, 13:57
Re: GivePlayerID - by Dixon_Smith - 16.09.2012, 13:58

Forum Jump:


Users browsing this thread: 3 Guest(s)