Disable Commands
#5

Simple. Create a variable like
pawn Код:
new InOneHit[MAX_PLAYERS];
then when player join the match set variable value to 1.

pawn Код:
if(!strcmp(cmdtext, "/onehit", true))
{

InOneHit[playerid] = 1;
return 1;
}
then when players uses anyother command while in deathmatch. return it to an error
pawn Код:
if(InOneHit[playerid] == 1) return SendClientMessage(playerid,0xAA3333AA,"[ERROR]You cant use commands while in a Deathmatch");
Reply


Messages In This Thread
Disable Commands - by Saleem - 21.07.2013, 19:40
Re: Disable Commands - by ConnorHunter - 21.07.2013, 19:43
Re: Disable Commands - by Saleem - 22.07.2013, 03:04
Re: Disable Commands - by Saleem - 22.07.2013, 08:08
Re: Disable Commands - by Champ - 22.07.2013, 08:15
Re: Disable Commands - by Th3b3ast5 - 22.07.2013, 08:15
Re: Disable Commands - by JimmyCh - 22.07.2013, 08:15
Re: Disable Commands - by Areax - 22.07.2013, 08:29
Re: Disable Commands - by JimmyCh - 22.07.2013, 08:32
Re: Disable Commands - by Champ - 22.07.2013, 08:32

Forum Jump:


Users browsing this thread: 1 Guest(s)