pawn Код:
new bool:isinDM[MAX_PLAYERS] = false;
//If the player enters the location, 'isinDM[playerid]=true;'
//If the player exits the location, 'isinDM[playerid]=false;'
CMD:dm1(playerid,params[])
{
if (!isinDM[playerid]) return SendClientMessage(playerid, -1, "You are not in the DM location.");
SetPlayerPos(playerid, 1133.1377,-1558.7405,22.7509);
SetPlayerVirtualWorld(playerid, 5);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Welcom to DM 1");
PlayerPlaySound(playerid ,3200,0,0,0);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
GivePlayerWeapon(playerid, 27, 1500);
GivePlayerWeapon(playerid, 29, 1500);
GivePlayerWeapon(playerid, 31, 2000);
GivePlayerWeapon(playerid, 16, 5);
return 1;
}