23.02.2016, 20:00
- I have the menu TextDraw
- TextDraw menu ESC to close
- Pressing ESC to close the Textdraw menu
- How to make off with the ESC
- Pressing the ESC button to close teleport
- Using this menu TextDraw
http://forum.sa-mp.com/showthread.ph...=textdraw+menu
- TextDraw menu ESC to close
- Pressing ESC to close the Textdraw menu
- How to make off with the ESC
- Pressing the ESC button to close teleport
- Using this menu TextDraw
http://forum.sa-mp.com/showthread.ph...=textdraw+menu
Код:
// This is a comment // uncomment the line below if you want to write a filterscript #define FILTERSCRIPT #include <a_samp> #include <zcmd> #define COLOR_ORANGE 0xFFBB00AA #define COLOR_WHITE 0xFFFFFFAA #if defined FILTERSCRIPT new Text:BG; new Text:TeleMenu; new Text:AllSaints; new Text:Hospital; new Text:Unity; new Text:Airport; new Text:Verona; new Text:Skate; new Text:VIP; new Text:News; new Text:Bank; new Text:Jefferson; new Text:LRG; new Text:WAG; new Text:Transfender; new Text:Pier; new Text:FBI; new Text:Gaton; new Text:Bayside; new Text:Dillimore; new Text:Creek; new Text:Stadium; new Text:Insurence; new Text:Docks; new Text:Version; new Text:Close; new Text:RedBox; new Text:Next; new Text:NPBox; new Text:Previous; public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Teleport Menu Loaded! V:1.0"); print("--------------------------------------\n"); BG = TextDrawCreate(418.666931, 100.225921, "usebox"); TextDrawLetterSize(BG, 0.000000, 35.199802); TextDrawTextSize(BG, 250.000000, 0.000000); TextDrawAlignment(BG, 1); TextDrawColor(BG, 0); TextDrawUseBox(BG, true); TextDrawBoxColor(BG, 102); TextDrawSetShadow(BG, 0); TextDrawSetOutline(BG, 0); TextDrawFont(BG, 0); TeleMenu = TextDrawCreate(272.666564, 97.896270, "Teleport Menu"); TextDrawLetterSize(TeleMenu, 0.449999, 1.600000); TextDrawAlignment(TeleMenu, 1); TextDrawColor(TeleMenu, -1); TextDrawSetShadow(TeleMenu, 0); TextDrawSetOutline(TeleMenu, 1); TextDrawBackgroundColor(TeleMenu, 51); TextDrawFont(TeleMenu, 3); TextDrawSetProportional(TeleMenu, 1); AllSaints = TextDrawCreate(297.333465, 125.688911, "All Saints"); TextDrawLetterSize(AllSaints, 0.449999, 1.600000); TextDrawAlignment(AllSaints, 1); TextDrawColor(AllSaints, -1); TextDrawSetShadow(AllSaints, 0); TextDrawSetOutline(AllSaints, 1); TextDrawBackgroundColor(AllSaints, 51); TextDrawFont(AllSaints, 1); TextDrawSetProportional(AllSaints, 1); TextDrawSetSelectable(AllSaints, true); Hospital = TextDrawCreate(278.000000, 143.111068, "County General"); TextDrawLetterSize(Hospital, 0.449999, 1.600000); TextDrawAlignment(Hospital, 1); TextDrawColor(Hospital, -1); TextDrawSetShadow(Hospital, 0); TextDrawSetOutline(Hospital, 1); TextDrawBackgroundColor(Hospital, 51); TextDrawFont(Hospital, 1); TextDrawSetProportional(Hospital, 1); TextDrawSetSelectable(Hospital, true); Unity = TextDrawCreate(283.999938, 166.755554, "Unity Station"); TextDrawLetterSize(Unity, 0.449999, 1.600000); TextDrawAlignment(Unity, 1); TextDrawColor(Unity, -1); TextDrawSetShadow(Unity, 0); TextDrawSetOutline(Unity, 1); TextDrawBackgroundColor(Unity, 51); TextDrawFont(Unity, 1); TextDrawSetProportional(Unity, 1); TextDrawSetSelectable(Unity, true); Airport = TextDrawCreate(307.666564, 185.007354, "Airport"); TextDrawLetterSize(Airport, 0.449999, 1.600000); TextDrawAlignment(Airport, 1); TextDrawColor(Airport, -1); TextDrawSetShadow(Airport, 0); TextDrawSetOutline(Airport, 1); TextDrawBackgroundColor(Airport, 51); TextDrawFont(Airport, 1); TextDrawSetProportional(Airport, 1); TextDrawSetSelectable(Airport, true); Verona = TextDrawCreate(278.666656, 204.503707, "Verona Beach"); TextDrawLetterSize(Verona, 0.449999, 1.600000); TextDrawAlignment(Verona, 1); TextDrawColor(Verona, -1); TextDrawSetShadow(Verona, 0); TextDrawSetOutline(Verona, 1); TextDrawBackgroundColor(Verona, 51); TextDrawFont(Verona, 1); TextDrawSetProportional(Verona, 1); TextDrawSetSelectable(Verona, true); Skate = TextDrawCreate(293.666717, 225.659332, "Skate Park"); TextDrawLetterSize(Skate, 0.449999, 1.600000); TextDrawAlignment(Skate, 1); TextDrawColor(Skate, -1); TextDrawSetShadow(Skate, 0); TextDrawSetOutline(Skate, 1); TextDrawBackgroundColor(Skate, 51); TextDrawFont(Skate, 1); TextDrawSetProportional(Skate, 1); TextDrawSetSelectable(Skate, true); VIP = TextDrawCreate(300.000091, 246.814819, "VIP Shop"); TextDrawLetterSize(VIP, 0.449999, 1.600000); TextDrawAlignment(VIP, 1); TextDrawColor(VIP, -1); TextDrawSetShadow(VIP, 0); TextDrawSetOutline(VIP, 1); TextDrawBackgroundColor(VIP, 51); TextDrawFont(VIP, 1); TextDrawSetProportional(VIP, 1); TextDrawSetSelectable(VIP, true); News = TextDrawCreate(298.333251, 271.703735, "SAN News"); TextDrawLetterSize(News, 0.449999, 1.600000); TextDrawAlignment(News, 1); TextDrawColor(News, -1); TextDrawSetShadow(News, 0); TextDrawSetOutline(News, 1); TextDrawBackgroundColor(News, 51); TextDrawFont(News, 1); TextDrawSetProportional(News, 1); TextDrawSetSelectable(News, true); Bank = TextDrawCreate(316.000000, 296.592712, "Bank"); TextDrawLetterSize(Bank, 0.449999, 1.600000); TextDrawAlignment(Bank, 1); TextDrawColor(Bank, -1); TextDrawSetShadow(Bank, 0); TextDrawSetOutline(Bank, 1); TextDrawBackgroundColor(Bank, 51); TextDrawFont(Bank, 1); TextDrawSetProportional(Bank, 1); TextDrawSetSelectable(Bank, true); Jefferson = TextDrawCreate(300.333374, 322.725921, "Jefferson"); TextDrawLetterSize(Jefferson, 0.449999, 1.600000); TextDrawAlignment(Jefferson, 1); TextDrawColor(Jefferson, -1); TextDrawSetShadow(Jefferson, 0); TextDrawSetOutline(Jefferson, 1); TextDrawBackgroundColor(Jefferson, 51); TextDrawFont(Jefferson, 1); TextDrawSetProportional(Jefferson, 1); TextDrawSetSelectable(Jefferson, true); LRG = TextDrawCreate(263.666564, 352.592651, "Low Riders Garage"); TextDrawLetterSize(LRG, 0.449999, 1.600000); TextDrawAlignment(LRG, 1); TextDrawColor(LRG, -1); TextDrawSetShadow(LRG, 0); TextDrawSetOutline(LRG, 1); TextDrawBackgroundColor(LRG, 51); TextDrawFont(LRG, 1); TextDrawSetProportional(LRG, 1); TextDrawSetSelectable(LRG, true); WAG = TextDrawCreate(412.999755, 321.896392, "Wheel Archs Garage"); TextDrawLetterSize(WAG, 0.449999, 1.600000); TextDrawAlignment(WAG, 3); TextDrawColor(WAG, -1); TextDrawSetShadow(WAG, 0); TextDrawSetOutline(WAG, 1); TextDrawBackgroundColor(WAG, 51); TextDrawFont(WAG, 1); TextDrawSetProportional(WAG, 1); TextDrawSetSelectable(WAG, true); Transfender = TextDrawCreate(411.333282, 352.592803, "Transfender Garage"); TextDrawLetterSize(Transfender, 0.449999, 1.600000); TextDrawAlignment(Transfender, 3); TextDrawColor(Transfender, -1); TextDrawSetShadow(Transfender, 0); TextDrawSetOutline(Transfender, 1); TextDrawBackgroundColor(Transfender, 51); TextDrawFont(Transfender, 1); TextDrawSetProportional(Transfender, 1); TextDrawSetSelectable(Transfender, true); Pier = TextDrawCreate(347.333038, 126.518470, "Pier"); TextDrawLetterSize(Pier, 0.449999, 1.600000); TextDrawAlignment(Pier, 3); TextDrawColor(Pier, -1); TextDrawSetShadow(Pier, 0); TextDrawSetOutline(Pier, 1); TextDrawBackgroundColor(Pier, 51); TextDrawFont(Pier, 1); TextDrawSetProportional(Pier, 1); TextDrawSetSelectable(Pier, true); FBI = TextDrawCreate(361.333038, 144.355468, "FBI HQ"); TextDrawLetterSize(FBI, 0.449999, 1.600000); TextDrawAlignment(FBI, 3); TextDrawColor(FBI, -1); TextDrawSetShadow(FBI, 0); TextDrawSetOutline(FBI, 1); TextDrawBackgroundColor(FBI, 51); TextDrawFont(FBI, 1); TextDrawSetProportional(FBI, 1); TextDrawSetSelectable(FBI, true); Gaton = TextDrawCreate(385.333190, 165.925888, "Ganton Gym"); TextDrawLetterSize(Gaton, 0.449999, 1.600000); TextDrawAlignment(Gaton, 3); TextDrawColor(Gaton, -1); TextDrawSetShadow(Gaton, 0); TextDrawSetOutline(Gaton, 1); TextDrawBackgroundColor(Gaton, 51); TextDrawFont(Gaton, 1); TextDrawSetProportional(Gaton, 1); TextDrawSetSelectable(Gaton, true); Bayside = TextDrawCreate(364.666625, 184.592681, "Bayside"); TextDrawLetterSize(Bayside, 0.449999, 1.600000); TextDrawAlignment(Bayside, 3); TextDrawColor(Bayside, -1); TextDrawSetShadow(Bayside, 0); TextDrawSetOutline(Bayside, 1); TextDrawBackgroundColor(Bayside, 51); TextDrawFont(Bayside, 1); TextDrawSetProportional(Bayside, 1); TextDrawSetSelectable(Bayside, true); Dillimore = TextDrawCreate(370.666564, 204.503692, "Dillimore"); TextDrawLetterSize(Dillimore, 0.449999, 1.600000); TextDrawAlignment(Dillimore, 3); TextDrawColor(Dillimore, -1); TextDrawSetShadow(Dillimore, 0); TextDrawSetOutline(Dillimore, 1); TextDrawBackgroundColor(Dillimore, 51); TextDrawFont(Dillimore, 1); TextDrawSetProportional(Dillimore, 1); TextDrawSetSelectable(Dillimore, true); Creek = TextDrawCreate(393.999755, 225.659164, "Palomino Creek"); TextDrawLetterSize(Creek, 0.449999, 1.600000); TextDrawAlignment(Creek, 3); TextDrawColor(Creek, -1); TextDrawSetShadow(Creek, 0); TextDrawSetOutline(Creek, 1); TextDrawBackgroundColor(Creek, 51); TextDrawFont(Creek, 1); TextDrawSetProportional(Creek, 1); TextDrawSetSelectable(Creek, true); Stadium = TextDrawCreate(378.333312, 247.229644, "LS Stadium"); TextDrawLetterSize(Stadium, 0.449999, 1.600000); TextDrawAlignment(Stadium, 3); TextDrawColor(Stadium, -1); TextDrawSetShadow(Stadium, 0); TextDrawSetOutline(Stadium, 1); TextDrawBackgroundColor(Stadium, 51); TextDrawFont(Stadium, 1); TextDrawSetProportional(Stadium, 1); TextDrawSetSelectable(Stadium, true); Insurence = TextDrawCreate(373.333312, 270.874053, "Insurance"); TextDrawLetterSize(Insurence, 0.449999, 1.600000); TextDrawAlignment(Insurence, 3); TextDrawColor(Insurence, -1); TextDrawSetShadow(Insurence, 0); TextDrawSetOutline(Insurence, 1); TextDrawBackgroundColor(Insurence, 51); TextDrawFont(Insurence, 1); TextDrawSetProportional(Insurence, 1); TextDrawSetSelectable(Insurence, true); Docks = TextDrawCreate(387.333190, 296.177886, "Fishing Docks"); TextDrawLetterSize(Docks, 0.449999, 1.600000); TextDrawAlignment(Docks, 3); TextDrawColor(Docks, -1); TextDrawSetShadow(Docks, 0); TextDrawSetOutline(Docks, 1); TextDrawBackgroundColor(Docks, 51); TextDrawFont(Docks, 1); TextDrawSetProportional(Docks, 1); TextDrawSetSelectable(Docks, true); Version = TextDrawCreate(396.333312, 103.288856, "V 1.0"); TextDrawLetterSize(Version, 0.113333, 0.957036); TextDrawAlignment(Version, 1); TextDrawColor(Version, -1); TextDrawSetShadow(Version, 0); TextDrawSetOutline(Version, 1); TextDrawBackgroundColor(Version, 51); TextDrawFont(Version, 1); TextDrawSetProportional(Version, 1); Close = TextDrawCreate(257.666473, 399.466827, "Close"); TextDrawLetterSize(Close, 0.449999, 1.600000); TextDrawAlignment(Close, 1); TextDrawColor(Close, -1); TextDrawSetShadow(Close, 0); TextDrawSetOutline(Close, 1); TextDrawBackgroundColor(Close, 51); TextDrawFont(Close, 2); TextDrawSetProportional(Close, 1); TextDrawSetSelectable(Close, true); RedBox = TextDrawCreate(254.999923, 401.381439, "RedBox"); TextDrawLetterSize(RedBox, 0.000000, 1.388682); TextDrawTextSize(RedBox, 318.333374, 0.000000); TextDrawAlignment(RedBox, 1); TextDrawColor(RedBox, 0); TextDrawUseBox(RedBox, true); TextDrawBoxColor(RedBox, -16776961); TextDrawSetShadow(RedBox, 0); TextDrawSetOutline(RedBox, 0); TextDrawBackgroundColor(RedBox, -16776961); TextDrawFont(RedBox, 0); Next = TextDrawCreate(324.999877, 374.163238, ">>"); TextDrawLetterSize(Next, 0.449999, 1.600000); TextDrawAlignment(Next, 1); TextDrawColor(Next, -1); TextDrawSetShadow(Next, 0); TextDrawSetOutline(Next, 1); TextDrawBackgroundColor(Next, 51); TextDrawFont(Next, 1); TextDrawSetProportional(Next, 1); TextDrawSetSelectable(Next, true); NPBox = TextDrawCreate(352.000000, 375.248168, "usebox"); TextDrawLetterSize(NPBox, 0.000000, 1.619134); TextDrawTextSize(NPBox, 319.000000, 0.000000); TextDrawAlignment(NPBox, 1); TextDrawColor(NPBox, 0); TextDrawUseBox(NPBox, true); TextDrawBoxColor(NPBox, 334613674); TextDrawSetShadow(NPBox, 0); TextDrawSetOutline(NPBox, 0); TextDrawFont(NPBox, 0); Previous = TextDrawCreate(324.666687, 374.162963, "<<"); TextDrawLetterSize(Previous, 0.449999, 1.600000); TextDrawAlignment(Previous, 1); TextDrawColor(Previous, -1); TextDrawSetShadow(Previous, 0); TextDrawSetOutline(Previous, 1); TextDrawBackgroundColor(Previous, 51); TextDrawFont(Previous, 1); TextDrawSetProportional(Previous, 1); TextDrawSetSelectable(Previous, true); return 1; } public OnFilterScriptExit() { TextDrawDestroy(BG); TextDrawDestroy(TeleMenu); TextDrawDestroy(AllSaints); TextDrawDestroy(Hospital); TextDrawDestroy(Unity); TextDrawDestroy(Airport); TextDrawDestroy(Verona); TextDrawDestroy(Skate); TextDrawDestroy(VIP); TextDrawDestroy(News); TextDrawDestroy(Bank); TextDrawDestroy(Jefferson); TextDrawDestroy(LRG); TextDrawDestroy(WAG); TextDrawDestroy(Transfender); TextDrawDestroy(Pier); TextDrawDestroy(FBI); TextDrawDestroy(Gaton); TextDrawDestroy(Bayside); TextDrawDestroy(Dillimore); TextDrawDestroy(Creek); TextDrawDestroy(Stadium); TextDrawDestroy(Insurence); TextDrawDestroy(Docks); TextDrawDestroy(Version); TextDrawDestroy(Close); TextDrawDestroy(RedBox); TextDrawDestroy(Next); TextDrawDestroy(NPBox); TextDrawDestroy(Previous); return 1; } #else main() { } #endif CMD:teleport(playerid) { TextDrawShowForPlayer(playerid, BG); TextDrawShowForPlayer(playerid, TeleMenu); TextDrawShowForPlayer(playerid, AllSaints); TextDrawShowForPlayer(playerid, Hospital); TextDrawShowForPlayer(playerid, Unity); TextDrawShowForPlayer(playerid, Airport); TextDrawShowForPlayer(playerid, Verona); TextDrawShowForPlayer(playerid, Skate); TextDrawShowForPlayer(playerid, VIP); TextDrawShowForPlayer(playerid, News); TextDrawShowForPlayer(playerid, Bank); TextDrawShowForPlayer(playerid, Jefferson); TextDrawShowForPlayer(playerid, LRG); TextDrawShowForPlayer(playerid, Next); TextDrawShowForPlayer(playerid, NPBox); TextDrawShowForPlayer(playerid, Version); TextDrawShowForPlayer(playerid, Close); TextDrawShowForPlayer(playerid, RedBox); SelectTextDraw(playerid, 0xA3B4C5FF); return 1; } public OnPlayerClickTextDraw(playerid, Text:clickedid) { if(_:clickedid != INVALID_TEXT_DRAW) { if(clickedid == AllSaints) { SetPlayerPos(playerid, 1188.721313, -1327.980712, 13.560094); SetPlayerFacingAngle(playerid, 266.963989); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~All Saints", 300, 1); } else if(clickedid == Hospital) { SetPlayerPos(playerid, 2002.118896, -1459.253051, 13.976039); SetPlayerFacingAngle(playerid, 91.969909); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~County Central", 300, 1); } else if(clickedid == Unity) { SetPlayerPos(playerid, 1845.091552, -1883.868286, 13.430412); SetPlayerFacingAngle(playerid, 87.590660); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~Unity Station", 300, 1); } else if(clickedid == Airport) { SetPlayerPos(playerid, 1549.765625, -2327.221435, 13.554566); SetPlayerFacingAngle(playerid, 305.962677); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~Airport", 300, 1); } else if(clickedid == Verona) { SetPlayerPos(playerid, 272.020385, -1855.016845, 3.138944); SetPlayerFacingAngle(playerid, 167.781250); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~Verona Beach", 300, 1); } else if(clickedid == Skate) { SetPlayerPos(playerid, 1923.343627, -1402.317626, 13.570312); SetPlayerFacingAngle(playerid, 102.607337); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~Skate Park", 300, 1); } else if(clickedid == VIP) { SetPlayerPos(playerid, 1230.494628, -1654.971801, 11.796875); SetPlayerFacingAngle(playerid, 278.70233); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~VIP Shop", 300, 1); } else if(clickedid == News) { SetPlayerPos(playerid, 771.163452, -1345.748779, 13.524566); SetPlayerFacingAngle(playerid, 85.420623); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~SAN News", 300, 1); } else if(clickedid == Bank) { SetPlayerPos(playerid, 1454.840698, -1032.919555, 23.656250); SetPlayerFacingAngle(playerid, 275.615692); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~Bank", 300, 1); } else if(clickedid == Jefferson) { SetPlayerPos(playerid, 2154.411865, -1146.687744, 24.557231); SetPlayerFacingAngle(playerid, 354.810729); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~Jefferson", 300, 1); } else if(clickedid == LRG) { SetPlayerPos(playerid, 2645.167480, -2024.723754, 13.546875); SetPlayerFacingAngle(playerid, 182.554824); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~Low Ride Garage", 300, 1); } else if(clickedid == WAG) { SetPlayerPos(playerid, -2707.022949, 217.767456, 4.179687); SetPlayerFacingAngle(playerid, 95.784019); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~Wheel Archs Garage", 300, 1); } else if(clickedid == Transfender) { SetPlayerPos(playerid, 1041.522827, -1039.072021, 31.771018); SetPlayerFacingAngle(playerid, 356.526794); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~Transfender Garage", 300, 1); } else if(clickedid == Pier) { SetPlayerPos(playerid, 2760.265136, -2452.654296, 13.542481); SetPlayerFacingAngle(playerid, 183.878387); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~Pier", 300, 1); } else if(clickedid == FBI) { SetPlayerPos(playerid, 345.805755, -1529.614501, 33.342090); SetPlayerFacingAngle(playerid, 149.987747); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~FBI HQ", 300, 1); } else if(clickedid == Gaton) { SetPlayerPos(playerid, 2231.828857, -1730.195434, 13.382812); SetPlayerFacingAngle(playerid, 89.104393); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~Gaton Gym", 300, 1); } else if(clickedid == Bayside) { SetPlayerPos(playerid, -2276.782226, 2352.660888, 4.565527); SetPlayerFacingAngle(playerid, 55.755527); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~Bayside", 300, 1); } else if(clickedid == Dillimore) { SetPlayerPos(playerid, 665.454406, -580.834106, 16.063018); SetPlayerFacingAngle(playerid, 89.482643); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~Dillimore", 300, 1); } else if(clickedid == Creek) { SetPlayerPos(playerid, 2271.369140, 27.635885, 26.166128); SetPlayerFacingAngle(playerid, 265.498046); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~Palomino Creek", 300, 1); } else if(clickedid == Stadium) { SetPlayerPos(playerid, 2683.412109, -1683.787841, 9.150171); SetPlayerFacingAngle(playerid, 100.126068); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~Los Santos Stadium", 300, 1); } else if(clickedid == Insurence) { SetPlayerPos(playerid, 2060.800781, -1910.922851, 13.546875); SetPlayerFacingAngle(playerid, 271.402252); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~Insurence", 300, 1); } else if(clickedid == Docks) { SetPlayerPos(playerid, 385.550140, -2075.771484, 7.835937); SetPlayerFacingAngle(playerid, 273.933563); SendClientMessage(playerid, COLOR_ORANGE, "You've been teleported"); GameTextForPlayer(playerid, "~r~~h~~h~Fishing Docks", 300, 1); } else if(clickedid == Next) { TextDrawShowForPlayer(playerid, BG); TextDrawShowForPlayer(playerid, WAG); TextDrawShowForPlayer(playerid, Transfender); TextDrawShowForPlayer(playerid, Pier); TextDrawShowForPlayer(playerid, FBI); TextDrawShowForPlayer(playerid, Gaton); TextDrawShowForPlayer(playerid, Bayside); TextDrawShowForPlayer(playerid, Dillimore); TextDrawShowForPlayer(playerid, Creek); TextDrawShowForPlayer(playerid, Stadium); TextDrawShowForPlayer(playerid, Insurence); TextDrawShowForPlayer(playerid, Docks); TextDrawShowForPlayer(playerid, Previous); TextDrawShowForPlayer(playerid, TeleMenu); TextDrawShowForPlayer(playerid, Version); TextDrawShowForPlayer(playerid, NPBox); TextDrawShowForPlayer(playerid, Close); TextDrawShowForPlayer(playerid, RedBox); SelectTextDraw(playerid, 0xA3B4C5FF); TextDrawHideForPlayer(playerid, AllSaints); TextDrawHideForPlayer(playerid, Hospital); TextDrawHideForPlayer(playerid, Unity); TextDrawHideForPlayer(playerid, Airport); TextDrawHideForPlayer(playerid, Verona); TextDrawHideForPlayer(playerid, Skate); TextDrawHideForPlayer(playerid, VIP); TextDrawHideForPlayer(playerid, News); TextDrawHideForPlayer(playerid, Bank); TextDrawHideForPlayer(playerid, Jefferson); TextDrawHideForPlayer(playerid, LRG); TextDrawHideForPlayer(playerid, Next); } else if (clickedid == Previous) { TextDrawShowForPlayer(playerid, BG); TextDrawShowForPlayer(playerid, Version); TextDrawShowForPlayer(playerid, TeleMenu); TextDrawShowForPlayer(playerid, Next); TextDrawShowForPlayer(playerid, NPBox); TextDrawShowForPlayer(playerid, Close); TextDrawShowForPlayer(playerid, RedBox); TextDrawShowForPlayer(playerid, AllSaints); TextDrawShowForPlayer(playerid, Hospital); TextDrawShowForPlayer(playerid, Unity); TextDrawShowForPlayer(playerid, Airport); TextDrawShowForPlayer(playerid, Verona); TextDrawShowForPlayer(playerid, Skate); TextDrawShowForPlayer(playerid, VIP); TextDrawShowForPlayer(playerid, News); TextDrawShowForPlayer(playerid, Bank); TextDrawShowForPlayer(playerid, Jefferson); TextDrawShowForPlayer(playerid, LRG); SelectTextDraw(playerid, 0xA3B4C5FF); TextDrawHideForPlayer(playerid, WAG); TextDrawHideForPlayer(playerid, Transfender); TextDrawHideForPlayer(playerid, Pier); TextDrawHideForPlayer(playerid, FBI); TextDrawHideForPlayer(playerid, Gaton); TextDrawHideForPlayer(playerid, Bayside); TextDrawHideForPlayer(playerid, Dillimore); TextDrawHideForPlayer(playerid, Creek); TextDrawHideForPlayer(playerid, Stadium); TextDrawHideForPlayer(playerid, Insurence); TextDrawHideForPlayer(playerid, Docks); TextDrawHideForPlayer(playerid, Previous); } else if(clickedid == Close) { TextDrawHideForPlayer(playerid, BG); TextDrawHideForPlayer(playerid, TeleMenu); TextDrawHideForPlayer(playerid, AllSaints); TextDrawHideForPlayer(playerid, Hospital); TextDrawHideForPlayer(playerid, Unity); TextDrawHideForPlayer(playerid, Airport); TextDrawHideForPlayer(playerid, Verona); TextDrawHideForPlayer(playerid, Skate); TextDrawHideForPlayer(playerid, VIP); TextDrawHideForPlayer(playerid, News); TextDrawHideForPlayer(playerid, Bank); TextDrawHideForPlayer(playerid, Jefferson); TextDrawHideForPlayer(playerid, LRG); TextDrawHideForPlayer(playerid, WAG); TextDrawHideForPlayer(playerid, Transfender); TextDrawHideForPlayer(playerid, Pier); TextDrawHideForPlayer(playerid, FBI); TextDrawHideForPlayer(playerid, Gaton); TextDrawHideForPlayer(playerid, Bayside); TextDrawHideForPlayer(playerid, Dillimore); TextDrawHideForPlayer(playerid, Creek); TextDrawHideForPlayer(playerid, Stadium); TextDrawHideForPlayer(playerid, Insurence); TextDrawHideForPlayer(playerid, Docks); TextDrawHideForPlayer(playerid, Version); TextDrawHideForPlayer(playerid, Close); TextDrawHideForPlayer(playerid, RedBox); TextDrawHideForPlayer(playerid, Next); TextDrawHideForPlayer(playerid, NPBox); TextDrawHideForPlayer(playerid, Previous); CancelSelectTextDraw(playerid); } } return 1; }