Blocking a CMD
#2

pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
   if(InDM[playerid] == 1)
   {
      return SendClientMessage(playerid, -1, "You can't use commands in a DM match!");
    }
    else return 1;
}
Use this by comparing cmdtext to god, or under InDM, just return 0.
Reply


Messages In This Thread
Blocking a CMD - by LeeXian99 - 27.03.2013, 09:39
Re: Blocking a CMD - by RajatPawar - 27.03.2013, 09:40
Re: Blocking a CMD - by Neil. - 27.03.2013, 09:44

Forum Jump:


Users browsing this thread: 1 Guest(s)