21.06.2012, 18:56
pawn Код:
CMD:givecash(playerid, params[])
{
new targetid, ammount;
if(sscanf(params,"ui", targetid)) return SendClientMessage(playerid, 0xFFFFFFF,"Syntax error.Correct usage: /givemoney [PlayerID] ammount");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFF,"That player is not connected to the server!");
GivePlayerMoney(targetid, ammount);
GivePlayerMoney(playerid, -ammount);
return 1;
}