13.08.2011, 11:25
in that /dm code add
SetPVarInt(playerid, "InDm", 1);
then in all your commands (yeah,, a long procedure) add
and under home add
report any errors here, so i can fix them for you..
P.S. i am using PVar's as they are easy to understand
EDIT: ^ what kingunit said will also work ^
SetPVarInt(playerid, "InDm", 1);
then in all your commands (yeah,, a long procedure) add
pawn Код:
if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid, (YOURCOLOR), "You are in DM, you cant use that command!");
else {
//your command here
}
pawn Код:
if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid, (YOURCOLOR), "You must use /leavedm to teleport");
P.S. i am using PVar's as they are easy to understand
EDIT: ^ what kingunit said will also work ^