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