[Ajuda] Criaзгo comando /bloquear e /desbloquear
#2

PHP код:
// == TOPO === //
new bool:xTravarComando MAX_PLAYERS ] ;

COMMAND:bloquear playerid )
{
    static 
i;
    for(
GetMaxPlayers()-1> -1; --i)
    {
        
xTravarComando ] = true ;
    }
    
SendClientMessage playerid, -1"Comando bloqueado" ) ;
    return 
1;
}
COMMAND:desbloquear playerid )
{
    static 
i;
    for(
GetMaxPlayers()-1> -1; --i)
    {
        
xTravarComando ] = false ;
    }
    
SendClientMessage playerid, -1"Comando desbloqueado" ) ;
    return 
1;
}

// ====== NO SEU COMANDO
    
if ( xTravarComando playerid ] == true )
        return 
SendClientMessage playerid, -1"[ ERRO ]: Comando bloqueado" ) ; 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)