06.05.2011, 23:51
Inicio do Game Mode
Inicio do OnPlayerCommandText
Qualquer lugar do OnPlayerCommandText
Shadow
Vocк esqueceu de colocar a funзгo que impede o player usar comando se tiver bloqueado =)
pawn Код:
new bool: CMDBloqueado = false;
pawn Код:
if(CMDBloqueado == true && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "Comandos bloqueados");
pawn Код:
if(strcmp("/bloquearcmds", cmdtext, true, 14) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo tб logado na RCon");
if(CMDBloqueado == false)
{
CMDBloqueado = true;
SendClientMessageToAll(0xFFFFFFFF, "Todos os comandos foram bloqueados");
}
else
{
CMDBloqueado = false;
SendClientMessageToAll(0xFFFFFFFF, "Todos os comandos foram desbloqueados");
}
return 1;
}
Vocк esqueceu de colocar a funзгo que impede o player usar comando se tiver bloqueado =)