17.05.2013, 09:22
PHP код:
// == TOPO === //
new bool:xTravarComando [ MAX_PLAYERS ] ;
COMMAND:bloquear ( playerid )
{
static i;
for(i = GetMaxPlayers()-1; i > -1; --i)
{
xTravarComando [ i ] = true ;
}
SendClientMessage ( playerid, -1, "Comando bloqueado" ) ;
return 1;
}
COMMAND:desbloquear ( playerid )
{
static i;
for(i = GetMaxPlayers()-1; i > -1; --i)
{
xTravarComando [ i ] = false ;
}
SendClientMessage ( playerid, -1, "Comando desbloqueado" ) ;
return 1;
}
// ====== NO SEU COMANDO
if ( xTravarComando [ playerid ] == true )
return SendClientMessage ( playerid, -1, "[ ERRO ]: Comando bloqueado" ) ;