[AJUDA]Bloquear Comando no x1
#2

pawn Код:
new bool: NoX1[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    NoX1[playerid] = false;

    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    NoX1[playerid] = false;

    return 1;
}


public OnPlayerCommandText(playerid, cmdtext[])
{
    if(NoX1[playerid] == true && strcmp(cmd, "/sair", true) != 0)
        return SendClientMessage(playerid,-1,"Vocк nгo pode usar este comando em um X1");


    if(strcmp(cmdtext, "/x1", true) == 0)
    {
        //Cуdigo para ir para o x1
        NoX1[playerid] = true;

        return 1;
    }
    if(strcmp(cmdtext, "/sair", true) == 0)
    {
        //Cуdigo para sair do x1
        NoX1[playerid] = false;

        return 1;
    }

    return 1;
}
Reply


Messages In This Thread
[AJUDA]Bloquear Comando no x1 - by ReDKiiL - 27.07.2011, 20:41
Re: [AJUDA]Bloquear Comando no x1 - by ViniBorn - 27.07.2011, 21:01
Re: [AJUDA]Bloquear Comando no x1 - by JonathanFeitosa - 27.07.2011, 21:04
Re: [AJUDA]Bloquear Comando no x1 - by ViniBorn - 27.07.2011, 21:13
Re: [AJUDA]Bloquear Comando no x1 - by RebeloX - 27.07.2011, 21:16
Re: [AJUDA]Bloquear Comando no x1 - by [S]trong - 27.07.2011, 21:20
Re: [AJUDA]Bloquear Comando no x1 - by ViniBorn - 27.07.2011, 21:27
Re: [AJUDA]Bloquear Comando no x1 - by JonathanFeitosa - 27.07.2011, 22:02
Re: [AJUDA]Bloquear Comando no x1 - by Shadoww5 - 27.07.2011, 22:27
Re: [AJUDA]Bloquear Comando no x1 - by CZ - 19.12.2014, 02:30

Forum Jump:


Users browsing this thread: 1 Guest(s)