[Ajuda] Mudar Comando
#7

Quote:
Originally Posted by lokos45
Посмотреть сообщение
Nгo й assim, era tipo igual ao anterior, mнnimo de players online 15, e tem que ser o que tem dentro do impostфmetro dividido pelo nъmero de pessoas online.
Tipo assim:

Код:
new bolsa = Tax/(aqui nгo sei o que coloca, mas й Tax dividido pelo nъmero de jogadores online);
SendClientMessage(playerid, COLOR_GREY, "Vocк deu a taxa para todos os jogadores online!");
format(string, sizeof(string), "* Vocк recebeu R$%d do banco de Impostos pelo Prefeito.",bolsa);
SendClientMessage(i, COLOR_LIGHTBLUE, string);
GivePlayerMoney(i, bolsa);
entendeu?
PHP код:
if(strcmp(cmd,"/dartaxa",true)==0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(
PlayerInfo[playerid][pLider] != 7)
            {
                
SendClientMessage(playeridCOLOR_GREY"   Vocк nгo й o Prefeito !");
                return 
true;
            }
            if(
IsPlayerConnected(i))
            {
                new 
price Tax Cops;
                for(new 
0MAX_PLAYERSi++)
                {
                            
SendClientMessage(playeridCOLOR_GREY"Vocк deu a taxa para todos os players!");
                            
format(stringsizeof(string), "* Vocк recebeu R$%d do banco de Impostos pelo Prefeito.",price);
                            
SendClientMessage(iCOLOR_LIGHTBLUEstring);
                             
GivePlayerMoney(i,price);
                }
            }
                
SaveStuff();
        }       
        return 
true;
    } 
Reply


Messages In This Thread
Mudar Comando - by lokos45 - 07.09.2013, 18:00
Re: Mudar Comando - by SkullFire - 07.09.2013, 18:10
Re: Mudar Comando - by Coe1 - 07.09.2013, 18:18
Re: Mudar Comando - by lokos45 - 07.09.2013, 18:25
Re: Mudar Comando - by SkullFire - 07.09.2013, 18:25
Re: Mudar Comando - by Coe1 - 07.09.2013, 18:27
Re: Mudar Comando - by SkullFire - 07.09.2013, 18:28
Re: Mudar Comando - by lokos45 - 07.09.2013, 18:31
Re: Mudar Comando - by DannielCooper - 07.09.2013, 18:35
Re: Mudar Comando - by lokos45 - 07.09.2013, 18:52

Forum Jump:


Users browsing this thread: 1 Guest(s)