22.06.2012, 18:50
pawn Код:
//create a global player array
new bool: bIsInDM[MAX_PLAYERS];
//when you send a player to the DM (or whatever)
bIsInDM[playerid] = true;
COMMAND:leave(playerid, params[])
{
if( bIsInDM[playerid] )//check if player is in DM
{
//player is in DM remove them
bIsInDM[playerid] = false;
}
else
{
//player is not in dm
}
return 1;
}