Дайте /tp Copy Samp RP
LecoMpTe[CM]
Дата: Вторник, 15.07.2014, 19:37 | Сообщение # 1
Боец
Сообщений: 69
Статус: Offline
Мне только название телепортов, и точки, репой не обижу)
Webbka
Дата: Среда, 23.07.2014, 20:15 | Сообщение # 2
Тащер же :D
Сообщений: 94
Статус: Offline
А не проще самому придумать точки телепорта? Я сам себе придумывал. PS. Посмотри "Админские будни" на ZI :D
:3
Kanoo
Дата: Среда, 23.07.2014, 20:43 | Сообщение # 3
Бывалый
Сообщений: 324
Статус: Offline
Подожди,сейчас скину! Добавлено (23.07.2014, 20:43) --------------------------------------------- В команды!
else if(strcmp(cmd, "/teleport", true) == 0 || strcmp(cmd, "/tp", true) == 0) { if(PlayerInfo[playerid][pAdmin] >= 3) { if (dostup[playerid] != 1) return ShowPlayerDialog(playerid,2934,DIALOG_STYLE_INPUT,"Доступ администратора","Введите пароль от административной панели","Ок","Отмена"); new listitems[] = "Автовокзал\nВинивуд\nЦентр СФ\nЦентр ЛВ\nFBI\nРабота грузчиков\nГетто\nАвтошкола\nЛес\nАвтовокзал-2\nМэрия\nМэрия-2\nЗона 51 КПП\nCasino Rich\nAmmo LS\nАвианосец стоянка\nСклад Армии 51\nАвтопарк\nГонки\nAdmin деревня\nАэро ЛС\nPaintBall\nВелогонки\nТюрьма Лс\nТюрьма читеров"; ShowPlayerDialog(playerid, 9000, DIALOG_STYLE_LIST, "Teleport List", listitems, "Выбрать", "Закрыть"); } else { SendClientMessage(playerid, COLOR_GREY, "Вы не уполномочены использовать эту команду!"); return 1; } return 1; }
В диалоги!!
case 9000: { 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, 1153.4485,-1773.5287,33.6328); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1153.4485,-1773.5287,33.6328); } 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, 1510.1595,-848.2604,65.5188); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1510.1595,-848.2604,65.5188); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; return 1; } case 2: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, -2026.0707,179.2475,28.8359); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, -2026.0707,179.2475,28.8359); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; return 1; } case 3: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1797.3173,839.3347,10.6719); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1797.3173,839.3347,10.6719); } 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, -2509.9580,-614.2937,132.5625); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, -2509.9580,-614.2937,132.5625); } 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, 2182.6470,-2276.5984,13.5337); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 2182.6470,-2276.5984,13.5337); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; return 1; } case 6: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 2201.7083,-1697.3547,13.6818); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 2201.7083,-1697.3547,13.6818); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; } case 7: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, -2042.7015,-92.3698,35.1718); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, -2042.7015,-92.3698,35.1718); } 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, -1077.7568,-2305.7173,52.3192); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, -1077.7568,-2305.7173,52.3192); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Лес", sendername); return 1; } case 9: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1249.2120,-1819.5248,13.4101); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1249.2120,-1819.5248,13.4101); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Автовокзал", sendername); return 1; } case 10: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1483.4178,-1743.8053,13.5469); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1483.4178,-1743.8053,13.5469); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Мэрия", sendername); return 1; } case 11: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1420.9441,-1724.0057,30.7422); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1420.9441,-1724.0057,30.7422); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Мэрия -2", sendername); return 1; } case 12: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 82.1025,1920.3364,17.6807); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 82.1025,1920.3364,17.6807); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Зонa 51 кпп", sendername); return 1; } case 13: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1672.6022,2262.3828,10.8203); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1672.6022,2262.3828,10.8203); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Казино", sendername); return 1; } case 14: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1359.0708,-1278.9153,13.3582); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1359.0708,-1278.9153,13.3582); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Аммо LS", sendername); return 1; } case 15: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, -1336.3948,466.9529,7.1875); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, -1336.3948,466.9529,7.1875); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Авианосец", sendername); return 1; } case 16: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 320.1389,1952.5820,17.6406); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 320.1389,1952.5820,17.6406); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Склад Армии 51", sendername); return 1; } case 17: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1630.3284,-1150.3087,24.0703); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1630.3284,-1150.3087,24.0703); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Автопарк", sendername); return 1; } case 18: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1959.5488,-2180.7593,13.5469); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1959.5488,-2180.7593,13.5469); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Гонки", sendername); return 1; } case 19: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 2424.8781738281,-769.12707519531,1421.9255371094); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 2424.8781738281,-769.12707519531,1421.9255371094); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Админ квартира", sendername); return 1; } case 20: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1450.6117,-2467.6792,13.5547); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1450.6117,-2467.6792,13.5547); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Аэро ЛС", sendername); return 1; } case 21: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 519.5347,-1814.1448,6.5781); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 519.5347,-1814.1448,6.5781); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> paint", sendername); return 1; } case 22: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 2695.5076,-1704.6638,11.8438); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { SetPlayerPos(playerid, 2695.5076,-1704.6638,11.8438); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Велогонка", sendername); return 1; } case 23: { SetPlayerPos(playerid, 265.0579,78.0565,1004.6830); SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,6); return 1; } case 24: { SetPlayerPos(playerid, -219.1858,1410.8696,30.5167); SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,18); SetPlayerVirtualWorld(playerid, 1); return 1; } } } else { return 1; } }
Мой бот на ловлю машин(Arizona) https://yadi.sk/d/8f0T4vnKPtqsFQ http://rgho.st/8ypsgBTjx
Сообщение отредактировал Kanoo - Среда, 23.07.2014, 20:45
LecoMpTe[CM]
Дата: Среда, 23.07.2014, 22:56 | Сообщение # 4
Боец
Сообщений: 69
Статус: Offline
Спасибо уже сделал давно, у меня YCMD и Kanoo, у тебя не копия..... я просто взял и точки тп сам вставил ЛСПД тюрьма и т.д вот и все Добавлено (23.07.2014, 22:56) --------------------------------------------- Точней собом координаты вычеслял.
[CM]Logotipo
Дата: Среда, 06.08.2014, 22:00 | Сообщение # 5
Авторитет
Сообщений: 1083
Статус: Offline
LecoMpTe[CM] , зачем собейтом, если есть /save?
Скуп ВК RakDroid - прокачка аккаунтов с телефона VKMusic - вк музыка без браузера Делаю сайты/софт/стимботов на заказ
seriu
Дата: Четверг, 07.08.2014, 15:50 | Сообщение # 6
Боец
Сообщений: 92
Статус: Offline
Цитата Kanoo (
)
В диалоги!! case 9000: { 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, 1153.4485,-1773.5287,33.6328); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1153.4485,-1773.5287,33.6328); } 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, 1510.1595,-848.2604,65.5188); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1510.1595,-848.2604,65.5188); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; return 1; } case 2: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, -2026.0707,179.2475,28.8359); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, -2026.0707,179.2475,28.8359); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; return 1; } case 3: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1797.3173,839.3347,10.6719); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1797.3173,839.3347,10.6719); } 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, -2509.9580,-614.2937,132.5625); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, -2509.9580,-614.2937,132.5625); } 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, 2182.6470,-2276.5984,13.5337); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 2182.6470,-2276.5984,13.5337); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; return 1; } case 6: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 2201.7083,-1697.3547,13.6818); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 2201.7083,-1697.3547,13.6818); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; } case 7: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, -2042.7015,-92.3698,35.1718); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, -2042.7015,-92.3698,35.1718); } 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, -1077.7568,-2305.7173,52.3192); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, -1077.7568,-2305.7173,52.3192); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Лес", sendername); return 1; } case 9: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1249.2120,-1819.5248,13.4101); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1249.2120,-1819.5248,13.4101); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Автовокзал", sendername); return 1; } case 10: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1483.4178,-1743.8053,13.5469); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1483.4178,-1743.8053,13.5469); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Мэрия", sendername); return 1; } case 11: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1420.9441,-1724.0057,30.7422); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1420.9441,-1724.0057,30.7422); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Мэрия -2", sendername); return 1; } case 12: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 82.1025,1920.3364,17.6807); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 82.1025,1920.3364,17.6807); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Зонa 51 кпп", sendername); return 1; } case 13: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1672.6022,2262.3828,10.8203); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1672.6022,2262.3828,10.8203); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Казино", sendername); return 1; } case 14: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1359.0708,-1278.9153,13.3582); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1359.0708,-1278.9153,13.3582); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Аммо LS", sendername); return 1; } case 15: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, -1336.3948,466.9529,7.1875); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, -1336.3948,466.9529,7.1875); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Авианосец", sendername); return 1; } case 16: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 320.1389,1952.5820,17.6406); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 320.1389,1952.5820,17.6406); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Склад Армии 51", sendername); return 1; } case 17: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1630.3284,-1150.3087,24.0703); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1630.3284,-1150.3087,24.0703); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Автопарк", sendername); return 1; } case 18: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1959.5488,-2180.7593,13.5469); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1959.5488,-2180.7593,13.5469); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Гонки", sendername); return 1; } case 19: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 2424.8781738281,-769.12707519531,1421.9255371094); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 2424.8781738281,-769.12707519531,1421.9255371094); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Админ квартира", sendername); return 1; } case 20: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 1450.6117,-2467.6792,13.5547); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 1450.6117,-2467.6792,13.5547); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Аэро ЛС", sendername); return 1; } case 21: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 519.5347,-1814.1448,6.5781); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; return 1; } else { SetPlayerPos(playerid, 519.5347,-1814.1448,6.5781); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> paint", sendername); return 1; } case 22: { if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, 2695.5076,-1704.6638,11.8438); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { SetPlayerPos(playerid, 2695.5076,-1704.6638,11.8438); } SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,0); SetPlayerVirtualWorld(playerid,0); PlayerInfo[playerid][pInt] = 0; format(string, sizeof(string), "%s -> Велогонка", sendername); return 1; } case 23: { SetPlayerPos(playerid, 265.0579,78.0565,1004.6830); SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,6); return 1; } case 24: { SetPlayerPos(playerid, -219.1858,1410.8696,30.5167); SendClientMessage(playerid, COLOR_WHITE, "Вы были телепортированы!"); SetPlayerInterior(playerid,18); SetPlayerVirtualWorld(playerid, 1); return 1; } } } else { return 1; } }
можно было всего 1 раз написать "Вы были телепортированы" вместо кучи не нужных строк пример Код
swtich(listitem) { case 0: SetPlayerPos(playerid,X,Y,Z); case 1: SetPlayerPos(playerid,X,Y,Z); case 2: SetPlayerPos(playerid,X,Y,Z); case 3: SetPlayerPos(playerid,X,Y,Z); } SendClientMessage(playerid,-1,"Вы были телепортированы");