[Pedido] Dar dinheiro a todos
#8

Dificil usar um loop hoje em dia em...
pawn Код:
if (strcmp(cmd,"/payforall",true) == 0)
{
    if(JugadorInfo[playerid][jAdmin] >= 6)
    {
        new grana, new String[128];
        tmp = strtok(cmdtext,idx);
        grana = strval(tmp);
        if (!strval(tmp)) return SendClientMessage(playerid,-1,"Use: /payforall [Money]");
        for (new l = 0; l < MAX_PLAYERS; l++ )
        {
            if(IsPlayerConnected(l))
            {
                GivePlayerMoney(l, grana);
                format(String,128,"You gave $%i for all.",grana);
                SendClientMessage(playerid, -1, String);
            }
        }
    }else{
        SendClientMessage(playerid,0xBFBFBFAA,"You cant use this command.");
    }
    return 1;
}
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)