[Projeto] Comando
#10

Se vocк usa o processador de comandos ZCMD (Oque й recomendado) pode se usar dessa maneira com manipulaзгo de variaveis e uma funзгo prуpria do zcmd:

PHP код:
new bool:ComandosBloqueados[MAX_PLAYERS];
CMD:irarena(playerid)
{
    
// SetPlayerPos.....
    
ComandosBloqueados[playerid] = true;
    return 
1;
}
CMD:sairarena(playerid)
{
    
// SetPlayerPos.....
    
ComandosBloqueados[playerid] = false;
    return 
1;
}
public 
OnPlayerCommandReceived(playeridcmdtext[])
{
    if(
ComandosBloqueados[playerid] == true)
    {
        
SendClientMessage(playerid, -1"ERRO: Vocк nгo pode usar comandos na arena. /sairarena");
        return 
0;
    }
    return 
1;

Reply


Messages In This Thread
Comando - by maxblaya01 - 19.08.2015, 03:10
Re: COMANDO - by Wellington1999 - 19.08.2015, 03:13
Re: COMANDO - by iTakelot - 19.08.2015, 03:24
Re: COMANDO - by Wellington1999 - 19.08.2015, 03:48
Re: COMANDO - by riajedA - 19.08.2015, 16:13
Re: COMANDO - by iTakelot - 19.08.2015, 16:27
Re: COMANDO - by ipsLuan - 19.08.2015, 21:41
Re: Comando - by ipsLuan - 19.08.2015, 21:54
Re: Comando - by iTakelot - 19.08.2015, 21:57
Re: Comando - by Cleyson - 19.08.2015, 22:10

Forum Jump:


Users browsing this thread: 6 Guest(s)