16.07.2013, 06:05
what should be changed script from Give Money Player to Give Money All Player
This is the code Give Money to Player
What should be changed in order to Give Money to All Player?
This is the code Give Money to Player
Код:
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; }