23.06.2012, 06:34
Or this:
pawn Код:
// Create's the In an Event variable.
new IsInEvent[MAX_PLAYERS];
// The Command you wanted:
CMD:kill(playerid, params[])
{
if(!IsInEvent)// Check's if the Player is in a DM.
{
SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a DM!");
}
else
{
SendClientMessage(playerid, 0xFFFFFFFF, "You have left the DM area!");
SetPlayerPos(playerid,1766.5635,-1847.7111,13.5781); // Teleports them to Los Santos.
IsInEvent[playerid] = 0; // Sets them to not being in a DM.
}
return 1;
}