Some dialog problem too. I'm using this:
pawn Код:
if(dialogid == DM)
{
if(response)
{
if(listitem == 0) //CS
{
if(IsInDM[playerid] ==1)
{
SendClientMessage(playerid, COLOR_RED, "ERROR: {FFFFFF}You can not use commands in DM use /kill");
return 1;
}
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerVirtualWorld(playerid,5);
new CSS[128], playerName[MAX_PLAYER_NAME], RandomSpawn = random(11);
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
if (RandomSpawn == 0)
{
SetPlayerPos(playerid, 30.3971,1569.4806,12.7960);
SetPlayerFacingAngle(playerid, 179.3254);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
if (RandomSpawn == 1)
{
SetPlayerPos(playerid, -6.7110,1562.5524,12.7900);
SetPlayerFacingAngle(playerid, 52.7610);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
if (RandomSpawn == 2)
{
SetPlayerPos(playerid, -25.0410,1552.8302,12.7900);
SetPlayerFacingAngle(playerid, 46.7841);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
if (RandomSpawn == 3)
{
SetPlayerPos(playerid, -41.1229,1514.2462,12.7900);
SetPlayerFacingAngle(playerid, 331.2935);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
if (RandomSpawn == 4)
{
SetPlayerPos(playerid, -26.2702,1491.1162,12.7900);
SetPlayerFacingAngle(playerid, 222.2524);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
if (RandomSpawn == 5)
{
SetPlayerPos(playerid, -0.6597,1493.4347,12.7900);
SetPlayerFacingAngle(playerid, 331.2935);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
if (RandomSpawn == 6)
{
SetPlayerPos(playerid, -6.8291,1506.0853,12.7900);
SetPlayerFacingAngle(playerid, 222.2524);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
if (RandomSpawn == 7)
{
SetPlayerPos(playerid, 31.0777,1496.0863,12.7900);
SetPlayerFacingAngle(playerid, 222.2524);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
if (RandomSpawn == 8)
{
SetPlayerPos(playerid, 51.3692,1530.6277,12.7960);
SetPlayerFacingAngle(playerid, 52.7610);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
if (RandomSpawn == 9)
{
SetPlayerPos(playerid, 15.4309,1530.8241,12.7900);
SetPlayerFacingAngle(playerid, 46.7841);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,292);
}
if (RandomSpawn == 10)
{
SetPlayerPos(playerid, 8.5201,1549.0991,12.7960);
SetPlayerFacingAngle(playerid, 331.2935);
SetCameraBehindPlayer(playerid);
SetPlayerSkin(playerid,285);
}
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 30, 9999);
GivePlayerWeapon(playerid,34,9999);
GivePlayerWeapon(playerid, 16, 9999);
SetPlayerInterior(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
IsInDM[playerid] = 1;
SendClientMessage(playerid, COLOR_BLUE, "Welcome to Counter Strike DM");
format(CSS, sizeof(CSS), "[Teleport] %s has teleported to Counter Strike DM /dm", playerName);
SendClientMessageToAll(COLOR_LIGHTBLUE, CSS);
toggoto[playerid] = 1;
}
When the player is in DM, then how to set player markers off. I tried some things but I failed.