13.03.2014, 07:19
pawn Код:
CMD:setplayercash(playerid, params[])
{
new targetid, cash;
if(sscanf(params, "ui", targetid, cash)) return SendClientMessage(playerid, -1, "Usage: /setplayercash [playerid] [cash]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, "That player is not connected.");
PlayerInfo[targetid][Cash] = cash;
return 1;
}