22.04.2017, 18:28
PHP код:
// HERE you want a full cod
// im using zcmd & sscanf includes
CMD:paymentforadmins(playerid,params)
{
new amount,string[128];
if(sscanf(params,"i",amount)) return SendClientMessage(playerid,-1,"syntex:/paymentforadmins <amount>");
format(string,sizeof(string),"All adminstartors has been payed by owner with salary of %d$",amount);
for(new i;i<MAX_PLAYERS;i++)
{
if(/*check here if player is an admin like IsAnAdmin(i) fit with your GM dude !*/)
{
GivePlayerMoney(i,amount);
SendClientMessage(i,-1,string);
}
}
return 1;
}