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

pronto

PHP код:
// == TOPO === //
new bool:xTravarComando MAX_PLAYERS ] ;
COMMAND:bloquear playeridparams [ ] )
{
    if ( 
isnull params ) )
        return 
SendClientMessage playerid, -1"[ USE ]: /bloquear [ID]" ) ;
    
xTravarComando strval params ) ] = true ;
    
SendClientMessage playerid, -1"Comando bloqueado" ) ;
    return 
1;
}
COMMAND:desbloquear playeridparams [ ] )
{
    if ( 
isnull params ) )
        return 
SendClientMessage playerid, -1"[ USE ]: /desbloquear [ID]" ) ;
        
    
xTravarComando strval params ) ] = 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)