[Ajuda] Bloquear CMD
#3

Quote:
Originally Posted by ipsLuan
Посмотреть сообщение
pawn Код:
public OnPlayerCommandReceived(playerid, cmd[], params[], flags)
{
    if(playerInEvent[playerid]) return SendClientMessage(playerid, -1, "Vocк estб em um evento e nгo pode usar nenhum comando.");
    return 1;
}
Код:
new bool:playerInEvent[MAX_PLAYERS];

if(/*player entrou no evento*/) {
  playerInEvent[playerid] = true;
}

if(/*player saiu do evento*/) {
  playerInEvent[playerid] = false;
}
Reply


Messages In This Thread
Bloquear CMD - by powerths - 25.08.2018, 23:43
Re: Bloquear CMD - by ipsLuan - 25.08.2018, 23:53
Re: Bloquear CMD - by Ermanhaut - 26.08.2018, 04:49

Forum Jump:


Users browsing this thread: 2 Guest(s)