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