[Ajuda] Comando
#6

Quote:
Originally Posted by cicinho
Посмотреть сообщение
@Vegassilva, funcional.

PHP код:
new bool:PlayerInX1[MAX_PLAYERS],
    
Players;
CMD:verx1(playerid)
{
    if(
PlayerInX1[playerid] == true)
        return 
SendClientMessage(playerid0xFF0000FF"[ERRO] Voce jб estб na fila de x1.");
    
Players++;
    
PlayerInX1[playerid] = true;
    
    if(
Players == 2)
    {
        for(new 
iMAX_PLAYERSi++)
        {
            if(
PlayerInX1[i] == true)
            {
                
SetPlayerPos(i0.00.00.0);
                
SetPlayerInterior(i0);
                
Players=0;
            }
        }
    }else 
SendClientMessage(playerid0xFFFFFFFF"[INFO X1] Aguarde outro jogador.");
    return 
true;

O seu estб mais trabalhado, nгo faz do meu infuncional, pois o loop sу para depois da condicional. Ambos sгo funcionais.
Reply


Messages In This Thread
Comando - by Vegassilva - 05.04.2016, 19:44
Re: [Ajuda] Comando - by F1N4L - 05.04.2016, 19:48
Re: [Ajuda] Comando - by Vegassilva - 05.04.2016, 20:05
Re: [Ajuda] Comando - by F1N4L - 05.04.2016, 20:14
Re: [Ajuda] Comando - by cicinho - 05.04.2016, 20:22
Re: [Ajuda] Comando - by F1N4L - 05.04.2016, 20:28
Re: [Ajuda] Comando - by cicinho - 05.04.2016, 20:34
Re: [Ajuda] Comando - by F1N4L - 05.04.2016, 20:43

Forum Jump:


Users browsing this thread: 2 Guest(s)