[Ajuda] MAX_PLAYERS ou Variavel
#6

Pessoal, й basicamente isso que eu tenho:

PHP код:
#include <a_samp>
new carro[MAX_PLAYERS] = 520;
new 
TaNaArena[MAX_PLAYERS];
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/carro"cmdtexttrue10) == 0)
    {
        
CreateVehicle(carro[playerid], 00000060);
        return 
1;
    }
    if (
strcmp("/arena"cmdtexttrue10) == 0)
    {
        if (
TaNaArena[playerid] == 0)
        {
            
TaNaArena[playerid] = 1;
            
SetPlayerPos(playerid1417.01245.898484.78);
        } else {
            
SendClientMessage(playerid, -1"vocк jб estб na arena.");
        }
        return 
1;
    }
    return 
0;

Vamo usar o exemplo do /carro..

Quando eu digito /carro, meu veiculo aparece.. Mas quando meu amigo digita /carro, meu veiculo some e aparece pra ele!
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: 1 Guest(s)