Posts: 145
Threads: 35
Joined: Jun 2008
Hi, i have my deathmatch area that works fine but i dont know how to make it so you cant do commands in there.
Please can someone tell me how to do this
Thanks
Cameron
Posts: 10
Threads: 2
Joined: Mar 2009
Reputation:
0
this in the top of your script:
new in_dm[MAX_PLAYERS];
this in OnPlayerCommandText
if(strcmp(cmdtext,"/dm",true));
{
dm[playerid]=1;
}
put this where you wanna block command:
if(in_dm[playerid]==1)return SendClientMessage(playerid,0xFF0000FF,"You Cant Use Commands In Dm Area!!");
Posts: 145
Threads: 35
Joined: Jun 2008