14.08.2011, 11:32
pawn Код:
CMD:givemoney(playerid, params[])
{
new id, money, string[128], string2[128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "ERROR:You're not an admin.");
{
if(sscanf(params,"ii",id,money)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /givemoney [ID] [amount]");
else
GivePlayerMoney(id,money);
format(string, sizeof(string),"You have give player %s %d$!", GetName(id), money);
SendClientMessage(playerid, COLOR_GREY, string);
format(string2 ,sizeof(string2),"Administrator %s has given you %d$!", GetName(id), money);
SendClientMessage(id, COLOR_GREY, string2);
}
return 1;
}