[Ajuda] MAX_PLAYERS ou Variavel
#7

pawn Код:
#include <a_samp>

#define slots 100

new bool:TaNaArena[slots];

public OnPlayerConnect(playerid)
{
    TaNaArena[playerid] = false;
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/carro", cmdtext, true, 10) == 0)
    {
        CreateVehicle(520, 0, 0, 0, 0, 0, 0, 60);
        return 1;
    }
    if (strcmp("/arena", cmdtext, true, 10) == 0)
    {
        if (TaNaArena[playerid] == false)
        {
            TaNaArena[playerid] = true;
            SetPlayerPos(playerid, 1417.0, 1245.89, 8484.78);
        } else {
            SendClientMessage(playerid, -1, "vocк jб estб na arena.");
        }
        return 1;
    }
    return 0;
}
tente
Reply


Messages In This Thread
MAX_PLAYERS ou Variavel - by RuanRider - 01.10.2013, 14:47
Re: MAX_PLAYERS ou Variavel - by Locky_ - 01.10.2013, 14:50
Re: MAX_PLAYERS ou Variavel - by RuanRider - 01.10.2013, 14:54
Re: MAX_PLAYERS ou Variavel - by ThuuGLif3 - 01.10.2013, 14:56
Re: MAX_PLAYERS ou Variavel - by arakuta - 01.10.2013, 15:05
Re: MAX_PLAYERS ou Variavel - by RuanRider - 01.10.2013, 15:42
Re: MAX_PLAYERS ou Variavel - by DarckWilly - 01.10.2013, 19:51
Re: MAX_PLAYERS ou Variavel - by zSuYaNw - 01.10.2013, 20:07
Re: MAX_PLAYERS ou Variavel - by Zivo - 01.10.2013, 20:52
Re: MAX_PLAYERS ou Variavel - by arakuta - 01.10.2013, 21:02

Forum Jump:


Users browsing this thread: 2 Guest(s)