Posts: 52
Threads: 1
Joined: Jun 2008
Reputation:
0
EDIT: Did you mean you actually have your own GangZoneCreate type of deathmatch zone, or did you just mean an area they could DM in? as the one below I posted is only if you meant the latter.
You need to set a variable when the player joins the deathmatch zone, something lke
new enterDMZone[MAX_PLAYERS];
Then set the enterDMZone[playerid] = 1; when they enter it.
Then in the command to teleport away
if(enterDMZone[playerid] == 1) {
SendClientMessage(playerid, YOUR_COLOR, "You need to exit the deathmatch zone first");
return 1;
}
when they do finally leave enterDMZone[playerid] = 0;
Alternatively, if you use a streamer, many have functions to detect zones that you personally can create.
Or you can IsPlayerInRangeOfPoint etc
There may even be a standard zone check to see if your in the range of a zone, somewhere on the wiki, have a quick browse. If not try the above.
Posts: 332
Threads: 30
Joined: Oct 2011
Reputation:
0
U need to add.if(isindm1) to all ur tele commands to check if he is in dm or not.if he is don't allow teleport.
Posts: 533
Threads: 102
Joined: Sep 2011
Reputation:
0
you want do make /gotols for admins?
Posts: 343
Threads: 83
Joined: Jan 2011
Reputation:
0
No i want when i am in the dm to disable the teleport commands...