16.09.2012, 12:35
pawn Код:
CMD:givemoney(playerid, params[])
{
new targetid, ammount;
if(sscanf(params, "ui",targetid)) return SendClientMessage(playerid, 0xFFFFFFF, "USAGE: /givemoney [PlayerID] [Ammount]");
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, red, "Error: This CMD is only for Admins!");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, red, "Error: This Player isnt Connected!");
GivePlayerMoney(targetid,ammount);
return 1;
}