07.01.2012, 00:36
pawn Код:
CMD:gc(playerid,params[])
{
new pname[24], cash, targetid, string[128];
if(!IsPlayerLuxAdmin(playerid)) return SendClientMessage(playerid, -1, "Error: You are not admin");
if(sscanf(params,"ui",targetid, cash)) return SendClientMessage(playerid,-1,"USAGE: /gc [playerid] [cash]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, red, "ERROR: That player isn't online!");
GetPlayerName(targetid, pname, 24);
GivePlayerMoney(targetid, cash);
format(string, 128, "** ADMIN CASH: You have been given $%d.", cash);
SendClientMessage(targetid,0xFF00FFFF,string);
return 1;
}