26.02.2014, 05:16
btw it was good but I did some thing made it as you see but i dun know what i did
It's 1 Command:
It's 1 Command:
Код:
CMD:givemoney(playerid, params[]) { new id, money, string[128], string2[128],plName[24],aName[24]; GetPlayerName(playerid,aName,sizeof(aName)); GetPlayerName(id,plName,sizeof(plName)); if(PlayerInfo[playerid][Level] >= 3) { 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$!", plName, money); SendClientMessage(playerid, yellow, string); format(string2 ,sizeof(string2),"Administrator %s has given you %d$!", aName, money); SendClientMessage(id, blue, string2); } return 1; }