06.01.2012, 23:33
It doesnt give the player money, but no errors
pawn Код:
CMD:gc(playerid,params[])
{
new pname[24], targetid, string[128], tmp[128];
new cash = strval(tmp);
if(IsPlayerLuxAdmin(playerid))
if(sscanf(params,"u",targetid)) return SendClientMessage(playerid,-1,"USAGE: /gc [playerid]");
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 %s.",cash);
SendClientMessage(targetid,0xFF00FFFF,string);
return 1;
}