Advertisement
GeekSiMo

Basic Teleport Menu By GeekSiMo

Jun 7th, 2014
862
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 25.33 KB | None | 0 0
  1. //-------------------------------------------------
  2. //
  3. //  Teleports Menu By GeekSiMo
  4. //
  5. //-------------------------------------------------
  6.  
  7. #include <a_samp>
  8. #include <zcmd>
  9.  
  10. #define DIALOG_TELES  1
  11. #define DIALOG_TELES2 2
  12. #define COLOR_YELLOW 0xFFD40EFF
  13.  
  14. new Text:TeleportMessages;
  15. ////////////////////////////////////////////////////////////////////////////////
  16. main()
  17. {
  18.     print("\n=============================================");
  19.     print("====Teleports Menu By GeekSiMo Loaded !!!====");
  20.     print("=============================================\n");
  21. }
  22. ////////////////////////////////////////////////////////////////////////////////
  23. public OnFilterScriptInit()
  24. {
  25.     ///////////////////////////////
  26.     // Teleport Messages Textdraw//
  27.     //////////////////////////////
  28.     TeleportMessages = TextDrawCreate(3.000000, 436.000000, "");
  29.     TextDrawBackgroundColor(TeleportMessages, 255);
  30.     TextDrawFont(TeleportMessages, 1);
  31.     TextDrawLetterSize(TeleportMessages, 0.400000, 1.100000);
  32.     TextDrawColor(TeleportMessages, -1);
  33.     TextDrawSetOutline(TeleportMessages, 1);
  34.     TextDrawSetProportional(TeleportMessages, 1);
  35.     return 1;
  36. }
  37.  
  38. public OnFilterScriptExit()
  39. {
  40.     TextDrawHideForAll(TeleportMessages);
  41.     TextDrawDestroy(TeleportMessages);
  42.     return 1;
  43. }
  44. public OnPlayerConnect(playerid)
  45. {
  46.     TextDrawShowForPlayer(playerid, TeleportMessages);
  47.     SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Use /teles to check Teleports!");
  48.     return 1;
  49. }
  50. public OnPlayerDisconnect(playerid, reason)
  51. {
  52.     TextDrawHideForPlayer(playerid, TeleportMessages);
  53.     return 1;
  54. }
  55. public OnPlayerCommandText(playerid, cmdtext[])
  56. {
  57.     if (strcmp("mycommand", cmdtext, true, 10) == 0)
  58.     {
  59.         /////
  60.         return 1;
  61.     }
  62.     return 0;
  63. }
  64. /////////// Teleports Commands ///////////
  65. CMD:teles(playerid, params[])
  66. {
  67.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "BOT_GeekSiMo: you need to be the driver of the vehicle or be onfoot to use this command");
  68.     ShowPlayerDialog(playerid, DIALOG_TELES, DIALOG_STYLE_LIST, "| Teleports |", "{1ce9f0}Los Santos Airport | /lsa\n{f01c30}San Fierro Airport | /sfa\n{F6FF08}Las Venturas Airport | /lva\n{f08a1c}Abandoned Airport | /aa\n{4f61e3}SkyDive Los Santos | /lssky\n{98e461}SkyDive San Fierro | /sfsky\n{a34fe3}Mount Chiliad | /mc\n{46f125}Groove Street | /gs\n{eaf044}Doherty Garage | /dg\n{f04c44}The Foor Dragons Casino | /fd\n{ff0000}NEXT>>>", "Spawn", "Cancel");
  69.     return 1;
  70. }
  71. CMD:lsa(playerid, params[])
  72. {
  73.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be the driver of the vehicle or be onfoot to use this command");
  74.     if(!IsPlayerInAnyVehicle(playerid)){
  75.         SetPlayerPos(playerid, 1686.1224,-2240.7258,13.5469);
  76.         SetPlayerFacingAngle(playerid, 177.2548);
  77.         SetPlayerInterior(playerid, 0);
  78.         GameTextForPlayer(playerid, "~y~Welcome To Los Santos Airport", 4000,3);
  79.     }
  80.     else{
  81.         new veh = GetPlayerVehicleID(playerid);
  82.         SetVehiclePos(veh, 1682.8649,-2250.4910,13.1750);
  83.         SetVehicleZAngle(veh, 270.7848);
  84.         LinkVehicleToInterior(veh, 0);
  85.         PutPlayerInVehicle(playerid, veh, 0);
  86.         GameTextForPlayer(playerid, "~y~Welcome To Los Santos Airport", 4000,3);
  87.     }
  88.     new string[128], pName[MAX_PLAYER_NAME];
  89.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  90.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/lsa",pName);
  91.     TextDrawSetString(TeleportMessages, string);
  92.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to Los Santos Airport");
  93. }
  94. CMD:sfa(playerid, params[])
  95. {
  96.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be the driver of the vehicle or be onfoot to use this command");
  97.     if(!IsPlayerInAnyVehicle(playerid)){
  98.         SetPlayerPos(playerid, -1423.8333,-289.4786,14.1484);
  99.         SetPlayerFacingAngle(playerid, 137.6431);
  100.         SetPlayerInterior(playerid, 0);
  101.         GameTextForPlayer(playerid, "~y~Welcome To San Fierro Airport", 4000,3);
  102.     }
  103.     else{
  104.         new veh = GetPlayerVehicleID(playerid);
  105.         SetVehiclePos(veh, -1427.8187,-293.5207,13.7793);
  106.         SetVehicleZAngle(veh, 50.6680);
  107.         LinkVehicleToInterior(veh, 0);
  108.         PutPlayerInVehicle(playerid, veh, 0);
  109.         GameTextForPlayer(playerid, "~y~Welcome To San Fierro Airport", 4000,3);
  110.     }
  111.     new string[128], pName[MAX_PLAYER_NAME];
  112.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  113.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/sfa",pName);
  114.     TextDrawSetString(TeleportMessages, string);
  115.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to San Fierro Airport");
  116. }
  117. CMD:lva(playerid, params[])
  118. {
  119.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be the driver of the vehicle or be onfoot to use this command");
  120.     if(!IsPlayerInAnyVehicle(playerid)){
  121.         SetPlayerPos(playerid, 1685.1870,1448.4731,10.7701);
  122.         SetPlayerFacingAngle(playerid, 274.2267);
  123.         SetPlayerInterior(playerid, 0);
  124.         GameTextForPlayer(playerid, "~y~Welcome To Las Venturas Airport", 4000,3);
  125.     }
  126.     else{
  127.         new veh = GetPlayerVehicleID(playerid);
  128.         SetVehiclePos(veh, 1710.5868,1450.0239,10.4895);
  129.         SetVehicleZAngle(veh, 166.0855);
  130.         LinkVehicleToInterior(veh, 0);
  131.         PutPlayerInVehicle(playerid, veh, 0);
  132.         GameTextForPlayer(playerid, "~y~Welcome To Las Venturas Airport", 4000,3);
  133.     }
  134.     new string[128], pName[MAX_PLAYER_NAME];
  135.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  136.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/lva",pName);
  137.     TextDrawSetString(TeleportMessages, string);
  138.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to Las Venturas Airport");
  139. }
  140. CMD:aa(playerid, params[])
  141. {
  142.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be the driver of the vehicle or be onfoot to use this command");
  143.     if(!IsPlayerInAnyVehicle(playerid)){
  144.         SetPlayerPos(playerid, 425.4616,2532.0300,16.6003);
  145.         SetPlayerFacingAngle(playerid, 174.8854);
  146.         SetPlayerInterior(playerid, 0);
  147.         GameTextForPlayer(playerid, "~y~Welcome To The Abandoned Airport", 4000,3);
  148.     }
  149.     else{
  150.         new veh = GetPlayerVehicleID(playerid);
  151.         SetVehiclePos(veh, 425.4616,2532.0300,16.6003);
  152.         SetVehicleZAngle(veh, 174.8854);
  153.         LinkVehicleToInterior(veh, 0);
  154.         PutPlayerInVehicle(playerid, veh, 0);
  155.         GameTextForPlayer(playerid, "~y~Welcome To The Abandoned Airport", 4000,3);
  156.     }
  157.     new string[128], pName[MAX_PLAYER_NAME];
  158.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  159.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/aa",pName);
  160.     TextDrawSetString(TeleportMessages, string);
  161.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to The Abandoned Airport");
  162. }
  163. CMD:lssky(playerid, params[])
  164. {
  165.     if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be onfoot to use this command");
  166.     SetPlayerPos(playerid, 1545.0183,-1345.7279,329.4671);
  167.     SetPlayerFacingAngle(playerid, 3.5483);
  168.     SetPlayerInterior(playerid, 0);
  169.     GivePlayerWeapon(playerid, 46, 1);
  170.     GameTextForPlayer(playerid, "~y~Welcome To SkyDive Los Santos", 4000,3);
  171.     new string[128], pName[MAX_PLAYER_NAME];
  172.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  173.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/lssky",pName);
  174.     TextDrawSetString(TeleportMessages, string);
  175.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to SkyDive Los Santos");
  176. }
  177. CMD:sfsky(playerid, params[])
  178. {
  179.     if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be onfoot to use this command");
  180.     SetPlayerPos(playerid, -1753.8840,885.3961,295.8750);
  181.     SetPlayerFacingAngle(playerid, 14.3153);
  182.     SetPlayerInterior(playerid, 0);
  183.     GivePlayerWeapon(playerid, 46, 1);
  184.     GameTextForPlayer(playerid, "~y~Welcome To SkyDive San Fierro", 4000,3);
  185.     new string[128], pName[MAX_PLAYER_NAME];
  186.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  187.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/sfsky",pName);
  188.     TextDrawSetString(TeleportMessages, string);
  189.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to SkyDive San Fierro");
  190. }
  191. CMD:mc(playerid, params[])
  192. {
  193.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be the driver of the vehicle or be onfoot to use this command");
  194.     if(!IsPlayerInAnyVehicle(playerid)){
  195.         SetPlayerPos(playerid, -2317.4946,-1610.2184,483.8145);
  196.         SetPlayerFacingAngle(playerid, 321.6286);
  197.         SetPlayerInterior(playerid, 0);
  198.         GameTextForPlayer(playerid, "~y~Welcome To Mount Chiliad", 4000,3);
  199.     }
  200.     else{
  201.         new veh = GetPlayerVehicleID(playerid);
  202.         SetVehiclePos(veh, -2296.2986,-1621.1373,483.8142);
  203.         SetVehicleZAngle(veh, 220.5547);
  204.         LinkVehicleToInterior(veh, 0);
  205.         PutPlayerInVehicle(playerid, veh, 0);
  206.         GameTextForPlayer(playerid, "~y~Welcome To Mount Chiliad", 4000,3);
  207.     }
  208.     new string[128], pName[MAX_PLAYER_NAME];
  209.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  210.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/mc",pName);
  211.     TextDrawSetString(TeleportMessages, string);
  212.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to Mount Chilliad");
  213. }
  214. CMD:gs(playerid, params[])
  215. {
  216.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be the driver of the vehicle or be onfoot to use this command");
  217.     if(!IsPlayerInAnyVehicle(playerid)){
  218.         SetPlayerPos(playerid, 2490.6187,-1665.4498,13.3438);
  219.         SetPlayerFacingAngle(playerid, 89.1618);
  220.         SetPlayerInterior(playerid, 0);
  221.         GameTextForPlayer(playerid, "~y~Welcome To Groove Street", 4000,3);
  222.     }
  223.     else{
  224.         new veh = GetPlayerVehicleID(playerid);
  225.         SetVehiclePos(veh, 2490.6187,-1665.4498,13.3438);
  226.         SetVehicleZAngle(veh, 89.1618);
  227.         LinkVehicleToInterior(veh, 0);
  228.         PutPlayerInVehicle(playerid, veh, 0);
  229.         GameTextForPlayer(playerid, "~y~Welcome To Groove Street", 4000,3);
  230.     }
  231.     new string[128], pName[MAX_PLAYER_NAME];
  232.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  233.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/gs",pName);
  234.     TextDrawSetString(TeleportMessages, string);
  235.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to Groove Street");
  236. }
  237. CMD:dg(playerid, params[])
  238. {
  239.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be the driver of the vehicle or be onfoot to use this command");
  240.     if(!IsPlayerInAnyVehicle(playerid)){
  241.         SetPlayerPos(playerid, -2026.8556,156.8234,29.0391);
  242.         SetPlayerFacingAngle(playerid, 267.2130);
  243.         SetPlayerInterior(playerid, 0);
  244.         GameTextForPlayer(playerid, "~y~Welcome To Doherty Garage", 4000,3);
  245.     }
  246.     else{
  247.         new veh = GetPlayerVehicleID(playerid);
  248.         SetVehiclePos(veh, -2009.6727,156.0618,27.3191);
  249.         SetVehicleZAngle(veh, 359.0245);
  250.         LinkVehicleToInterior(veh, 0);
  251.         PutPlayerInVehicle(playerid, veh, 0);
  252.         GameTextForPlayer(playerid, "~y~Welcome To Doherty Garage", 4000,3);
  253.     }
  254.     new string[128], pName[MAX_PLAYER_NAME];
  255.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  256.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/dg",pName);
  257.     TextDrawSetString(TeleportMessages, string);
  258.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to Doherty Garage");
  259. }
  260. CMD:fd(playerid, params[])
  261. {
  262.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be the driver of the vehicle or be onfoot to use this command");
  263.     if(!IsPlayerInAnyVehicle(playerid)){
  264.         SetPlayerPos(playerid, 2025.9042,1007.5022,10.8203);
  265.         SetPlayerFacingAngle(playerid, 273.0692);
  266.         SetPlayerInterior(playerid, 0);
  267.         GameTextForPlayer(playerid, "~y~Welcome To The Foor Dragons Casino", 4000,3);
  268.     }
  269.     else{
  270.         new veh = GetPlayerVehicleID(playerid);
  271.         SetVehiclePos(veh, 2039.3466,1007.5059,10.4718);
  272.         SetVehicleZAngle(veh, 180.5719);
  273.         LinkVehicleToInterior(veh, 0);
  274.         PutPlayerInVehicle(playerid, veh, 0);
  275.         GameTextForPlayer(playerid, "~y~Welcome To The Foor Dragons Casino", 4000,3);
  276.     }
  277.     new string[128], pName[MAX_PLAYER_NAME];
  278.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  279.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/fd",pName);
  280.     TextDrawSetString(TeleportMessages, string);
  281.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to The Foor Dragons Casino");
  282. }
  283. CMD:glen(playerid, params[])
  284. {
  285.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be the driver of the vehicle or be onfoot to use this command");
  286.     if(!IsPlayerInAnyVehicle(playerid)){
  287.         SetPlayerPos(playerid, 2021.9263,-1254.1522,23.9844);
  288.         SetPlayerFacingAngle(playerid, 89.7922);
  289.         SetPlayerInterior(playerid, 0);
  290.         GameTextForPlayer(playerid, "~y~Welcome To Glen Park", 4000,3);
  291.     }
  292.     else{
  293.         new veh = GetPlayerVehicleID(playerid);
  294.         SetVehiclePos(veh, 2021.9263,-1254.1522,23.9844);
  295.         SetVehicleZAngle(veh, 89.7922);
  296.         LinkVehicleToInterior(veh, 0);
  297.         PutPlayerInVehicle(playerid, veh, 0);
  298.         GameTextForPlayer(playerid, "~y~Welcome To Glen Park", 4000,3);
  299.     }
  300.     new string[128], pName[MAX_PLAYER_NAME];
  301.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  302.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/glen",pName);
  303.     TextDrawSetString(TeleportMessages, string);
  304.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to Glen Park");
  305. }
  306. CMD:beach(playerid, params[])
  307. {
  308.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be the driver of the vehicle or be onfoot to use this command");
  309.     if(!IsPlayerInAnyVehicle(playerid)){
  310.         SetPlayerPos(playerid, 291.1230,-1779.9309,4.3659);
  311.         SetPlayerFacingAngle(playerid, 175.3379);
  312.         SetPlayerInterior(playerid, 0);
  313.         GameTextForPlayer(playerid, "~y~Welcome To Santa Maria Beach", 4000,3);
  314.     }
  315.     else{
  316.         new veh = GetPlayerVehicleID(playerid);
  317.         SetVehiclePos(veh, 291.1230,-1779.9309,4.3659);
  318.         SetVehicleZAngle(veh, 175.3379);
  319.         LinkVehicleToInterior(veh, 0);
  320.         PutPlayerInVehicle(playerid, veh, 0);
  321.         GameTextForPlayer(playerid, "~y~Welcome To Santa Maria Beach", 4000,3);
  322.     }
  323.     new string[128], pName[MAX_PLAYER_NAME];
  324.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  325.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/beach",pName);
  326.     TextDrawSetString(TeleportMessages, string);
  327.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to Santa Maria Beach");
  328. }
  329. CMD:dock(playerid, params[])
  330. {
  331.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be the driver of the vehicle or be onfoot to use this command");
  332.     if(!IsPlayerInAnyVehicle(playerid)){
  333.         SetPlayerPos(playerid, 2724.2781,-2397.6846,13.6328);
  334.         SetPlayerFacingAngle(playerid, 190.1431);
  335.         SetPlayerInterior(playerid, 0);
  336.         GameTextForPlayer(playerid, "~y~Welcome To Ocean Docks", 4000,3);
  337.     }
  338.     else{
  339.         new veh = GetPlayerVehicleID(playerid);
  340.         SetVehiclePos(veh, 2724.2781,-2397.6846,13.6328);
  341.         SetVehicleZAngle(veh, 190.1431);
  342.         LinkVehicleToInterior(veh, 0);
  343.         PutPlayerInVehicle(playerid, veh, 0);
  344.         GameTextForPlayer(playerid, "~y~Welcome To Ocean Docks", 4000,3);
  345.     }
  346.     new string[128], pName[MAX_PLAYER_NAME];
  347.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  348.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/dock",pName);
  349.     TextDrawSetString(TeleportMessages, string);
  350.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to Ocean Docks");
  351. }
  352. CMD:area51(playerid, params[])
  353. {
  354.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be the driver of the vehicle or be onfoot to use this command");
  355.     if(!IsPlayerInAnyVehicle(playerid)){
  356.         SetPlayerPos(playerid, 135.4572,1946.6665,19.3599);
  357.         SetPlayerFacingAngle(playerid, 1.6055);
  358.         SetPlayerInterior(playerid, 0);
  359.         GameTextForPlayer(playerid, "~y~Welcome To Area51", 4000,3);
  360.     }
  361.     else{
  362.         new veh = GetPlayerVehicleID(playerid);
  363.         SetVehiclePos(veh, 135.4572,1946.6665,19.3599);
  364.         SetVehicleZAngle(veh, 1.6055);
  365.         LinkVehicleToInterior(veh, 0);
  366.         PutPlayerInVehicle(playerid, veh, 0);
  367.         GameTextForPlayer(playerid, "~y~Welcome To Area51", 4000,3);
  368.     }
  369.     new string[128], pName[MAX_PLAYER_NAME];
  370.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  371.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/area51",pName);
  372.     TextDrawSetString(TeleportMessages, string);
  373.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to Area51");
  374. }
  375. CMD:lstune(playerid, params[])
  376. {
  377.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be the driver of the vehicle or be onfoot to use this command");
  378.     if(!IsPlayerInAnyVehicle(playerid)){
  379.         SetPlayerPos(playerid, 1040.8041,-1032.2076,32.0148);
  380.         SetPlayerFacingAngle(playerid, 321.6286);
  381.         SetPlayerInterior(playerid, 0);
  382.         GameTextForPlayer(playerid, "~y~Welcome To Los Santos Tuning Garage", 4000,3);
  383.     }
  384.     else{
  385.         new veh = GetPlayerVehicleID(playerid);
  386.         SetVehiclePos(veh, 1040.8041,-1032.2076,32.0148);
  387.         SetVehicleZAngle(veh, 220.5547);
  388.         LinkVehicleToInterior(veh, 0);
  389.         PutPlayerInVehicle(playerid, veh, 0);
  390.         GameTextForPlayer(playerid, "~y~Welcome To Los Santos Tuning Garage", 4000,3);
  391.     }
  392.     new string[128], pName[MAX_PLAYER_NAME];
  393.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  394.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/lstune",pName);
  395.     TextDrawSetString(TeleportMessages, string);
  396.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to Los Santos Tuning Garage");
  397. }
  398. CMD:sftune(playerid, params[])
  399. {
  400.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be the driver of the vehicle or be onfoot to use this command");
  401.     if(!IsPlayerInAnyVehicle(playerid)){
  402.         SetPlayerPos(playerid, -1935.9169,234.4120,34.3125);
  403.         SetPlayerFacingAngle(playerid, 321.6286);
  404.         SetPlayerInterior(playerid, 0);
  405.         GameTextForPlayer(playerid, "~y~Welcome To San Fierro Tuning Garage", 4000,3);
  406.     }
  407.     else{
  408.         new veh = GetPlayerVehicleID(playerid);
  409.         SetVehiclePos(veh, -1935.9169,234.4120,34.3125);
  410.         SetVehicleZAngle(veh, 220.5547);
  411.         LinkVehicleToInterior(veh, 0);
  412.         PutPlayerInVehicle(playerid, veh, 0);
  413.         GameTextForPlayer(playerid, "~y~Welcome To San Fierro Tuning Garage", 4000,3);
  414.     }
  415.     new string[128], pName[MAX_PLAYER_NAME];
  416.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  417.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/sftune",pName);
  418.     TextDrawSetString(TeleportMessages, string);
  419.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to San Fierro Tuning Garage");
  420. }
  421. CMD:lvtune(playerid, params[])
  422. {
  423.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be the driver of the vehicle or be onfoot to use this command");
  424.     if(!IsPlayerInAnyVehicle(playerid)){
  425.         SetPlayerPos(playerid, 2385.0134,1030.7831,10.8203);
  426.         SetPlayerFacingAngle(playerid, 321.6286);
  427.         SetPlayerInterior(playerid, 0);
  428.         GameTextForPlayer(playerid, "~y~Welcome To Las Venturas Tuning Garage", 4000,3);
  429.     }
  430.     else{
  431.         new veh = GetPlayerVehicleID(playerid);
  432.         SetVehiclePos(veh, 2385.0134,1030.7831,10.8203);
  433.         SetVehicleZAngle(veh, 220.5547);
  434.         LinkVehicleToInterior(veh, 0);
  435.         PutPlayerInVehicle(playerid, veh, 0);
  436.         GameTextForPlayer(playerid, "~y~Welcome To Las Venturas Tuning Garage", 4000,3);
  437.     }
  438.     new string[128], pName[MAX_PLAYER_NAME];
  439.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  440.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/lvtune",pName);
  441.     TextDrawSetString(TeleportMessages, string);
  442.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to Las Venturas Tuning Garage");
  443. }
  444. CMD:loco(playerid, params[])
  445. {
  446.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be the driver of the vehicle or be onfoot to use this command");
  447.     if(!IsPlayerInAnyVehicle(playerid)){
  448.         SetPlayerPos(playerid, 2645.4419,-2025.3015,13.5469);
  449.         SetPlayerFacingAngle(playerid, 7.1917);
  450.         SetPlayerInterior(playerid, 0);
  451.         GameTextForPlayer(playerid, "~y~Welcome To Loco Low Co", 4000,3);
  452.     }
  453.     else{
  454.         new veh = GetPlayerVehicleID(playerid);
  455.         SetVehiclePos(veh, 2645.4419,-2025.3015,13.5469);
  456.         SetVehicleZAngle(veh, 7.1917);
  457.         LinkVehicleToInterior(veh, 0);
  458.         PutPlayerInVehicle(playerid, veh, 0);
  459.         GameTextForPlayer(playerid, "~y~Welcome To Loco Low Co", 4000,3);
  460.     }
  461.     new string[128], pName[MAX_PLAYER_NAME];
  462.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  463.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/loco",pName);
  464.     TextDrawSetString(TeleportMessages, string);
  465.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to Loco Low Co");
  466. }
  467. CMD:arch(playerid, params[])
  468. {
  469.     if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, 0xCB2424FF, "GeekSiMo: You need to be the driver of the vehicle or be onfoot to use this command");
  470.     if(!IsPlayerInAnyVehicle(playerid)){
  471.         SetPlayerPos(playerid, -2709.7949,216.6772,4.1797);
  472.         SetPlayerFacingAngle(playerid, 72.7213);
  473.         SetPlayerInterior(playerid, 0);
  474.         GameTextForPlayer(playerid, "~y~Welcome To Wheel Arch Angels Tuning Garage", 4000,3);
  475.     }
  476.     else{
  477.         new veh = GetPlayerVehicleID(playerid);
  478.         SetVehiclePos(veh, -2709.7949,216.6772,4.1797);
  479.         SetVehicleZAngle(veh, 72.7213);
  480.         LinkVehicleToInterior(veh, 0);
  481.         PutPlayerInVehicle(playerid, veh, 0);
  482.         GameTextForPlayer(playerid, "~y~Welcome To Wheel Arch Angels Tuning Garage", 4000,3);
  483.     }
  484.     new string[128], pName[MAX_PLAYER_NAME];
  485.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  486.     format(string, sizeof(string), "~r~%s ~w~has Teleported to ~y~/arch",pName);
  487.     TextDrawSetString(TeleportMessages, string);
  488.     return SendClientMessage(playerid, COLOR_YELLOW, "GeekSiMo: Welcome to Wheel Arch Angels Tuning Garage");
  489. }
  490. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  491. {
  492.     if(dialogid == DIALOG_TELES)
  493.     {
  494.         if(response)
  495.         {
  496.             switch(listitem)
  497.             {
  498.                 case 0:
  499.                 {
  500.                     return cmd_lsa(playerid, "");
  501.                 }
  502.                 case 1:
  503.                 {
  504.                     return cmd_sfa(playerid, "");
  505.                 }
  506.                 case 2:
  507.                 {
  508.                     return cmd_lva(playerid, "");
  509.                 }
  510.                 case 3:
  511.                 {
  512.                     return cmd_aa(playerid, "");
  513.                 }
  514.                 case 4:
  515.                 {
  516.                     return cmd_lssky(playerid, "");
  517.                 }
  518.                 case 5:
  519.                 {
  520.                     return cmd_sfsky(playerid, "");
  521.                 }
  522.                 case 6:
  523.                 {
  524.                     return cmd_mc(playerid, "");
  525.                 }
  526.                 case 7:
  527.                 {
  528.                     return cmd_gs(playerid, "");
  529.                 }
  530.                 case 8:
  531.                 {
  532.                     return cmd_dg(playerid, "");
  533.                 }
  534.                 case 9:
  535.                 {
  536.                     return cmd_fd(playerid, "");
  537.                 }
  538.                 case 10:
  539.                 {
  540.                     return ShowPlayerDialog(playerid, DIALOG_TELES2, DIALOG_STYLE_LIST, "| Teleports |", "{4fa700}Glen Park | /glen\n{83f4d5}Santa Maria Beach | /beach\n{8a9a96}Ocean Docks | /dock\n{b44102}Area51 | /area51\n{9627d6}Los Santos Tuning Garage | /lstune\n{d6278e}San Fierro Tuning Garage | /sftune\n{d3e477}Las Venturas Tuning Garage | /lvtune\n{56f75e}Loco Low Co | /loco\n{56d3f7}Wheel Arch Angels Tuning Garage | /arch\n{ff0000}<<<Previous", "Spawn", "Cancel");
  541.                 }
  542.             }
  543.         }
  544.         return 1;
  545.     }
  546.     if(dialogid == DIALOG_TELES2)
  547.     {
  548.         if(response)
  549.         {
  550.             switch(listitem)
  551.             {
  552.                 case 0:
  553.                 {
  554.                     return cmd_glen(playerid, "");
  555.                 }
  556.                 case 1:
  557.                 {
  558.                     return cmd_beach(playerid, "");
  559.                 }
  560.                 case 2:
  561.                 {
  562.                     return cmd_dock(playerid, "");
  563.                 }
  564.                 case 3:
  565.                 {
  566.                     return cmd_area51(playerid, "");
  567.                 }
  568.                 case 4:
  569.                 {
  570.                     return cmd_lstune(playerid, "");
  571.                 }
  572.                 case 5:
  573.                 {
  574.                     return cmd_sftune(playerid, "");
  575.                 }
  576.                 case 6:
  577.                 {
  578.                     return cmd_lvtune(playerid, "");
  579.                 }
  580.                 case 7:
  581.                 {
  582.                     return cmd_loco(playerid, "");
  583.                 }
  584.                 case 8:
  585.                 {
  586.                     return cmd_arch(playerid, "");
  587.                 }
  588.                 case 9:
  589.                 {
  590.                     return ShowPlayerDialog(playerid, DIALOG_TELES, DIALOG_STYLE_LIST, "| Teleports |", "{1ce9f0}Los Santos Airport | /lsa\n{f01c30}San Fierro Airport | /sfa\n{F6FF08}Las Venturas Airport | /lva\n{f08a1c}Abandoned Airport | /aa\n{4f61e3}SkyDive Los Santos | /lssky\n{98e461}SkyDive San Fierro | /sfsky\n{a34fe3}Mount Chiliad | /mc\n{46f125}Groove Street | /gs\n{eaf044}Doherty Garage | /dg\n{f04c44}The Foor Dragons Casino | /fd\n{ff0000}NEXT>>>", "Spawn", "Cancel");
  591.                 }
  592.             }
  593.         }
  594.         return 1;
  595.     }
  596.     return 1;
  597. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement