17.08.2012, 16:30
Create a variable
Then add the following
now /exit command
and under your DM command add
IsPlayerInDM[playerid] = 1;
+REP if it helped.
pawn Код:
new IsPlayerInDM[MAX_PLAYERS];
pawn Код:
if(IsPlayerInDM[playerid] == 1) return SendClientMessage(playerid, 0xFF0000FF,"/exit before you use this command");
pawn Код:
CMD:exit(playerid, params[])
{
IsPlayerInDM[playerid] = 0;
SpawnPlayer(playerid);
return 1;
}
IsPlayerInDM[playerid] = 1;
+REP if it helped.