[Pedido] Dar dinheiro a todos
#5

PHP код:
if (strcmp(cmd,"/givemoney",true) == 0)
    {
        if(
JugadorInfo[playerid][jAdmin] >= 6)
        {
                new 
playerid2; new grana; new String[128];
                
tmp strtok(cmdtext,idx);
                
playerid2 strval(tmp);
                if (!
strlen(tmp)) return SendClientMessage(playerid,-1,"Use: /givemoney [ID/Name] [Money]");
                if (!
IsPlayerConnected(playerid2)) return SendClientMessage(playerid,-1,"The player is not online");
                
tmp strtok(cmdtext,idx);
                
grana strval(tmp);
                if (!
strlen(tmp)) return SendClientMessage(playerid,-1,"Use: /givemoney [ID/Name] [Money]");
                
GivePlayerMoney(playerid2,grana);
                
format(String,128,"You gave $%i for ID: %i",grana,playerid2);
                
SendClientMessage(playerid,-1,String);
                return 
true;
        }
        else
        {
                
SendClientMessage(playerid,0xBFBFBFAA,"You cant use this command.");
                return 
1;
        }
    } 
Nгo tem como transformar esse comando para que todos recebam a grana?
Reply


Messages In This Thread
Dar dinheiro a todos - by rafaelnacio - 12.11.2012, 17:55
Respuesta: Dar dinheiro a todos - by LoostGamer - 12.11.2012, 17:58
Re: Dar dinheiro a todos - by @FatalFormat - 12.11.2012, 18:00
Re: Dar dinheiro a todos - by BreakDriFT - 12.11.2012, 18:01
Re: Dar dinheiro a todos - by rafaelnacio - 12.11.2012, 18:05
Respuesta: Dar dinheiro a todos - by LoostGamer - 12.11.2012, 18:06
Re: Dar dinheiro a todos - by rodrigooo - 12.11.2012, 18:08
Re: Dar dinheiro a todos - by @FatalFormat - 12.11.2012, 18:09
Re: Dar dinheiro a todos - by rafaelnacio - 12.11.2012, 18:10
Re: Dar dinheiro a todos - by rafaelnacio - 12.11.2012, 18:16

Forum Jump:


Users browsing this thread: 3 Guest(s)