Niixie ]
Sure, erm.
You know like when you check if a player is logged in.
I bet you have one look'a'like to check if the player is in the DM. if not, then go to the top and do
Code:
new IsPlayerInDM[MAX_PLAYERS];
then when a player enters the DM put it in like
Code:
DCMD_COMMANDNAME(blablabla)
{
if(IsPlayerInDM[playerid] == 0)
{
//Rest of the code.
}
else
{
SendClientMessage(playerid, 0xFF0000AA, "Sorry you cannot use commands, While your in a dm");
}
return 1;
}