Disable chat for player
#2

Add in top of script:

Code:
new afkmsg[MAX_PLAYERS]
In /goafk command add:

Code:
afkmsg[playerid] = 1;
In /back command add:

Code:
afkmsg[playerid] = 0;
In OnPlayerText add:

Code:
if(afkmsg[playerid != 0) return SendClientMessage(playerid,0xFF0000FF,"You must to type /back before talking!");
Not sure, not tested.
Reply


Messages In This Thread
Disable chat for player - by sim_sima - 25.02.2011, 13:12
Re: Disable chat for player - by Libra_PL - 25.02.2011, 13:25
Re: Disable chat for player - by sim_sima - 25.02.2011, 13:32
Re: Disable chat for player - by sim_sima - 25.02.2011, 13:37
Re: Disable chat for player - by sim_sima - 25.02.2011, 13:38
Re: Disable chat for player - by Libra_PL - 25.02.2011, 14:13
Re: Disable chat for player - by sim_sima - 25.02.2011, 14:16

Forum Jump:


Users browsing this thread: 2 Guest(s)