Время работы: 50 минут
Код:
В public OnPlayerCommandText(playerid, cmdtext[]) добавим:
Code: Select all
else if(strcmp(cmd, "/teleport", true) == 0 || strcmp(cmd, "/tp", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new listitems[] = "Гос. структуры\nNews\nМафии\nБанды\nДругие места";
ShowPlayerDialog(playerid, 8000, DIALOG_STYLE_LIST, "Teleport List", listitems, "Выбрать", "Закрыть");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Вы не уполномочены использовать эту команду");
return 1;
}
return 1;
}
Ко всем case добавим:
Code: Select all
case 8000:
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, 8001, DIALOG_STYLE_LIST, "Гос структуры", "LSPD\nFBI\nSFa\nSFMC\nMayor\nSFPD\nInstructors\nLVa\nLVPD\nLSMC\nТюрьма", "Выбрать", "<< Назад");
return 1;
}
else if(listitem == 1)
{
ShowPlayerDialog(playerid, 8002, DIALOG_STYLE_LIST, "News", "Los Santos News\nSan Firro News\nLas Venturas News", "Выбрать", "<< Назад");
return 1;
}
else if(listitem == 2)
{
ShowPlayerDialog(playerid, 8003, DIALOG_STYLE_LIST, "Мафии", "Yakuza\nLa Cosa Nostra\nRussia Mafia", "Выбрать", "<< Назад");
return 1;
}
else if(listitem == 3)
{
ShowPlayerDialog(playerid, 8004, DIALOG_STYLE_LIST, "Банды", "East Side Ballas\nLos Santos Vagos Gang\nGroove Street Gang\nLos Aztecas Gang\nThe Rifa Gang", "Выбрать", "<< Назад");
return 1;
}
else if(listitem == 4)
{
ShowPlayerDialog(playerid, 8005, DIALOG_STYLE_LIST, "Другие места", "Магазин одежды LS\nАвтовокзал San Fierro\nLas Venturas\nБанк\nДерби\nГонки LS\nPaintboll\nЧилиад\nНебоскреб\nПляж Санта-Мария\nЛес\nСТО LS\nАммо LS\nVineWood\nSpawn", "Выбрать", "<< Назад");
return 1;
}
}
}
Снова ко всем case
Code: Select all
case 8001:
{
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(response)
{
switch(listitem)
{
case 0:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1550.5822,-1694.3402,6.2188);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 1550.5822,-1694.3402,6.2188);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в LSPD");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 1:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -2510.8499,-622.1688,132.7189);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, -2510.8499,-622.1688,132.7189);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в FBI");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 2:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -1312.4324,506.7943,18.2344);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, -1312.4324,506.7943,18.2344);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в SFa");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 3:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -2662.8628,625.9925,14.4531);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, -2662.8628,625.9925,14.4531);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в SFMC");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 4:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1521.1864,-1760.3815,13.5469);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 1521.1864,-1760.3815,13.5469);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в Мэрию");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 5:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -1590.9252,698.1960,-4.9063);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, -1590.9252,698.1960,-4.9063);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в SFPD");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 6:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -2032.1699,-99.8547,35.1641);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, -2032.1699,-99.8547,35.1641);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в АШ");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 7:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 215.1117,1912.7854,17.6406);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 215.1117,1912.7854,17.6406);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в LVa");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 8:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 2287.3755,2456.5376,10.8203);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 2287.3755,2456.5376,10.8203);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в LVPD");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 9:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1179.6946,-1317.2178,14.1569);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 1179.6946,-1317.2178,14.1569);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в LSMC");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 10:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 655.1415,-2448.8237,2.0000);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 655.1415,-2448.8237,2.0000);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в Тюрьму");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
}
}
else
{
return 1;
}
}
case 8002:
{
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(response)
{
switch(listitem)
{
case 0:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1656.4579,-1708.9310,15.6094);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 1656.4579,-1708.9310,15.6094);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в LSn");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 1:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -2044.9746,465.4711,35.1719);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, -2044.9746,465.4711,35.1719);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в SFn");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 2:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 2646.2444,1177.2518,10.8203);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 2646.2444,1177.2518,10.8203);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в LVn");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
}
}
else
{
return 1;
}
}
case 8003:
{
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(response)
{
switch(listitem)
{
case 0:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1473.9479,2766.0149,10.8203);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 1473.9479,2766.0149,10.8203);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы к мафии Yakuza");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 1:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1444.8938,749.1046,10.8203);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 1444.8938,749.1046,10.8203);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы к мафии LCN");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 2:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 950.5236,1733.0696,8.6484);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 950.5236,1733.0696,8.6484);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы к мафии Russia Mafia");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
}
}
else
{
return 1;
}
}
case 8004:
{
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(response)
{
switch(listitem)
{
case 0:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 2643.3176,-2012.5537,13.5547);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 2643.3176,-2012.5537,13.5547);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы к Ballas");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 1:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 2775.6533,-1617.8169,10.9219);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 2775.6533,-1617.8169,10.9219);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы к Vagos");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 2:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 2497.1655,-1678.4117,13.3489);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 2497.1655,-1678.4117,13.3489);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы к Groove");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 3:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1890.6366,-2039.8671,13.5469);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 1890.6366,-2039.8671,13.5469);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы к Aztec");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 4:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 2182.9004,-1804.4967,13.3701);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 2182.9004,-1804.4967,13.3701);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы к Rifa");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
}
}
else
{
return 1;
}
}
case 8005:
{
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(response)
{
switch(listitem)
{
case 0:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 435.6340,-1507.0796,31.0381);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 435.6340,-1507.0796,31.0381);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы к магазину одежды");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 1:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -1994.0812,200.7428,27.6875);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, -1994.0812,200.7428,27.6875);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы к АВ SF");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 2:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1824.1693,878.7547,10.5247);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 1824.1693,878.7547,10.5247);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в центр LV");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 3:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1238.3883,-1412.1561,13.2351);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid,1238.3883,-1412.1561,13.2351);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в банк");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 4:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 2692.1946,-1708.2686,11.8478);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid, 2692.1946,-1708.2686,11.8478);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы на дерби");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 5:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1966.4540,-2183.4915,13.5469);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid,1966.4540,-2183.4915,13.5469);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы на гонки LS");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 6:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 514.8319,-1812.4177,6.5781);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid,514.8319,-1812.4177,6.5781);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы на Paintboll");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 7:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -2255.1206,-1709.6025,479.9015);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid,-2255.1206,-1709.6025,479.9015);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы на Чилиад");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 8:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1548.1827,-1355.0808,329.4779);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid,1548.1827,-1355.0808,329.4779);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы на крышу небоскреба");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 9:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 244.4765,-1830.8729,3.7576);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid,244.4765,-1830.8729,3.7576);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы на пляж Санта-Мария");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 10:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, -676.2554,-1938.6755,14.4278);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid,-676.2554,-1938.6755,14.4278);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в лес");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 11:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 841.1260,-596.6574,18.3297);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid,841.1260,-596.6574,18.3297);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы в СТО LS");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 12:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1363.5693,-1280.6823,13.5469);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid,1363.5693,-1280.6823,13.5469);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы к Аммо LS");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 13:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1335.6104,-695.4904,92.0322);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid,1335.6104,-695.4904,92.0322);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы на VineWood");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
case 14:
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1240.2540,-1572.3467,13.3828);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
return 1;
}
else
{
SetPlayerPos(playerid,1240.2540,-1572.3467,13.3828);
}
SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы на Spawn");
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
}
}
else
{
return 1;
}
}