Payment
#6

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;

Reply


Messages In This Thread
Payment - by Hunud - 22.04.2017, 14:55
Re: Payment - by Hunud - 22.04.2017, 17:18
Re: Payment - by khRamin78 - 22.04.2017, 17:46
Re: Payment - by Hunud - 22.04.2017, 17:48
Re: Payment - by khRamin78 - 22.04.2017, 18:24
Re: Payment - by khRamin78 - 22.04.2017, 18:28

Forum Jump:


Users browsing this thread: 1 Guest(s)