DM Zones
#6

Use a variable; I recommend to use PVars.

In /boatDM and other DM commands
Код:
SetPVarInt(playerid, "InDM", true);
In /leavedm (dont use /leaveboatdm, otherwise you have alot of commands)
Код:
SetPVarInt(playerid, "InDM", false);
At the top of OnPlayerCommandText
Код:
if(GetPVarInt(playerid, "InDM")) return SendClientMessage(playerid, 0xFFFFFFFF, "You cannot use commands while you're in a deathmatch zone. Use /leavedm to exit!");
I recommend to use one variable so you have to use only one command (/leavedm) and also one check under OnPlayerCommandText.
Reply


Messages In This Thread
DM Zones - by willsuckformoney - 13.07.2010, 08:56
Re: DM Zones - by wups - 13.07.2010, 09:52
Re: DM Zones - by willsuckformoney - 13.07.2010, 10:12
Re: DM Zones - by hab2ever - 13.07.2010, 10:29
Re: DM Zones - by willsuckformoney - 13.07.2010, 10:45
Re: DM Zones - by RyDeR` - 13.07.2010, 10:57
Re: DM Zones - by willsuckformoney - 13.07.2010, 11:06
Re: DM Zones - by RyDeR` - 13.07.2010, 11:37
Re: DM Zones - by willsuckformoney - 13.07.2010, 12:18
Re: DM Zones - by willsuckformoney - 13.07.2010, 12:38

Forum Jump:


Users browsing this thread: 3 Guest(s)