Advertisement
xTurbox

Interior Teleport System v2.5

Sep 15th, 2015
430
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 17.66 KB | None | 0 0
  1. /*==============================================================================
  2. Credits
  3. ==============================================================================
  4. http://boylett.com/scripts/autoindent.php       <--- For fixing loose intended warnings, thus making the script look more neater and readable
  5. http://weedarr.wikidot.com/interior             <--- For interior IDs
  6. http://wiki.sa-mp.com/                          <--- For Some Functions usage
  7. http://forum.sa-mp.com/showthread.php?t=91354   <--- Zeex For ZCMD
  8. http://forum.sa-mp.com/showthread.php?t=576114  <--- Yashas For I-ZCMD(which i used)*/
  9.  
  10. //==============================================================================
  11. // Includes
  12. //==============================================================================
  13.  
  14. #include <a_samp>
  15. #include <zcmd>
  16. #include <sscanf2>
  17. //==============================================================================
  18. // Defines
  19. //==============================================================================
  20.  
  21. #define FILTERSCRIPT
  22.  
  23. //_________________________________Options______________________________________
  24. #define ADMIN       IsPlayerAdmin(playerid)//change line to match your admin system at the moment it is rcon admin
  25. #define ONLY_ADMIN  true //Change true to false if you want every one to use the cmds
  26. #define TELE_DIALOG 7323//Change this number to change the dialog number
  27. #define INT_CMD     29
  28.  
  29. //________________________________COLORS________________________________________
  30. #define RED     0xFF0000FF
  31. #define GREEN   0x00FF00FF
  32. #define BLUE    0x0000FFFF
  33.  
  34.  
  35. //_____________________________Short forms______________________________________
  36. #define SCM         SendClientMessage
  37. #define VEH         IsPlayerInAnyVehicle
  38. #define SPP         SetPlayerPos
  39. #define SPI         SetPlayerInterior
  40. #define GT          GameTextForPlayer
  41. #define RPW         ResetPlayerWeapons
  42.  
  43. #if defined FILTERSCRIPT
  44.  
  45. //==============================================================================
  46. // Call Backs
  47. //==============================================================================
  48.  
  49. public OnFilterScriptInit()
  50. {
  51.     print("\n===================================================================");
  52.     print("____________Interior Teleport system by TURBO loading....____________");
  53.     print("________Interior Teleport system by TURBO Successfully Loaded________");
  54.     print("=====================================================================\n");
  55.     return 1;
  56. }
  57.  
  58. public OnFilterScriptExit()
  59. {
  60.     print("\n===================================================================");
  61.     print("____________Interior Teleport system by TURBO Unloading....____________");
  62.     print("________Interior Teleport system by TURBO Successfully Unloaded________");
  63.     print("=====================================================================\n");
  64.     return 1;
  65. }
  66. #endif
  67. //==============================================================================
  68. //   Commands
  69. //==============================================================================
  70. CMD:inttele(playerid,params[])
  71. {
  72.     #if ONLY_ADMIN == true
  73.    if(!ADMIN) return 0;
  74.     #endif
  75.    ShowPlayerDialog(playerid, TELE_DIALOG, DIALOG_STYLE_LIST, "Interior Teleports",
  76.         "Shamal\nAndromeda\nAmmunation booths\nAmmunation range\nArea51\nlibertycityoutside\nlibertycityinside\nwarehouse 1\nwarehouse 2\nbank\ndirt track\npleasure domes\nbattle field\nSan Fierro Police HQ\nLos Santos Police HQ\nLas Ventras Police HQ\n8track\nBlood bowl\nKickstart\nHiddenroom\nWoozie's Office\nPlanning Department\nLos Santos Gym\nLas Ventrus Gym\nSan Fierro Gym\nCrack Factory\nAirport Ticket Desk\nAirport baggage reclaim\n Meat Factory\nBetting Shop",
  77.         "Select", "Close");
  78.     return 1;
  79. }
  80. CMD:intcmds(playerid,params[])
  81. {
  82.     ShowPlayerDialog(playerid,INT_CMD,DIALOG_STYLE_MSGBOX,"Interior Teleport Commands","/inttele\t/interior\t/interiorteleport\n/intcmds\n/killme\n/adminkill\n/gopos","close","");
  83.     }
  84.  
  85. CMD:killme(playerid,params[])
  86. {
  87.     SetPlayerHealth(playerid,0);
  88.     SendClientMessage(playerid,RED,"You have killed your self");
  89.     GameTextForPlayer(playerid,"~r~You killed your self",10000,2);
  90.     return 1;
  91.  
  92. }
  93. CMD:adminkill(playerid,params[])
  94. {
  95.     if(!ADMIN) return 0;
  96.  
  97.  
  98.     {
  99.         new id,string[128];
  100.         if(sscanf(params, "u", id)) return SCM(playerid,RED, "[ERROR]:/adminkill [ID]");
  101.         if(!IsPlayerConnected(id)) return SCM(playerid,RED, "[ERROR]: Wrong ID!");
  102.         SetPlayerHealth(id,0);
  103.         GameTextForPlayer(id,"Admin killed you",10000,2);
  104.         SCM(id,GREEN,"Admin has killed you");
  105.         format(string,sizeof(string),"You killed player %s!",GetName(playerid));
  106.         SCM(playerid,BLUE,string);
  107.         format(string,sizeof(string),"[ADMIN]Has killed %s!",GetName(id));
  108.         SendClientMessageToAll(GREEN,string);
  109.  
  110.  
  111.     }
  112.     return 1;
  113. }
  114. stock GetName(playerid)
  115. {
  116.     new name[MAX_PLAYER_NAME];
  117.     GetPlayerName(playerid, name, sizeof(name));
  118.     return name;
  119. }
  120. CMD:gotopos(playerid, params[])
  121. {
  122.     if(!ADMIN) return 0;
  123.     new Float:POS[3];
  124.     if(sscanf(params, "fff", POS[0], POS[1], POS[2])) return SendClientMessage(playerid,RED, "[ERROR]: /gotopos X Y Z (note just spaces no , or - between coordinates");
  125.     SetPlayerPos(playerid, POS[0], POS[1], POS[2]);
  126.     return 1;
  127. }
  128. //==============================================================================
  129. //    OnDialogResponse
  130. //==============================================================================
  131. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  132. {
  133.     if(dialogid == TELE_DIALOG)
  134.  
  135.  
  136.     {
  137.         if(response)
  138.  
  139.  
  140.         {
  141.             switch(listitem)
  142.  
  143.  
  144.             {
  145.                 case 0:
  146.  
  147.  
  148.                 {
  149.                     if(VEH(playerid))
  150.  
  151.  
  152.                     {
  153.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  154.  
  155.  
  156.                     }
  157.                     else
  158.  
  159.  
  160.                     {
  161.                         SPP(playerid,1.808619,32.384357,1199.59375);
  162.                         SPI(playerid,1);
  163.                         SCM(playerid,GREEN,"You have teleported to shamal interior successfully");
  164.                         GT(playerid,"~b~Welcome to~r~ shamal",5000,3);
  165.  
  166.  
  167.                     }
  168.  
  169.  
  170.                 }
  171.                 case 1:
  172.  
  173.  
  174.                 {
  175.                     if(VEH(playerid))
  176.  
  177.  
  178.                     {
  179.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  180.  
  181.  
  182.                     }
  183.                     else
  184.  
  185.  
  186.                     {
  187.                         SPP(playerid,315.745086,984.969299,1958.919067);
  188.                         SPI(playerid,9);
  189.                         SCM(playerid,GREEN,"You have teleported to andromada interior successfully");
  190.                         GT(playerid,"~b~Welcome to~r~ andromada",5000,3);
  191.  
  192.  
  193.                     }
  194.  
  195.  
  196.                 }
  197.                 case 2:
  198.  
  199.  
  200.                 {
  201.                     if(VEH(playerid))
  202.  
  203.  
  204.                     {
  205.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  206.  
  207.  
  208.                     }
  209.                     else
  210.  
  211.  
  212.                     {
  213.                         SPP(playerid,302.292877,-143.139099,1004.062500);
  214.                         SPI(playerid,7);
  215.                         SCM(playerid,GREEN,"You have teleported to ammunation booths successfully");
  216.                         GT(playerid,"~b~Welcome to~r~ ammunation booths",5000,3);
  217.  
  218.  
  219.                     }
  220.  
  221.  
  222.                 }
  223.                 case 3:
  224.  
  225.  
  226.                 {
  227.                     if(VEH(playerid))
  228.  
  229.  
  230.                     {
  231.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  232.  
  233.  
  234.                     }
  235.                     else
  236.  
  237.  
  238.                     {
  239.                         SPP(playerid,298.507934,-141.647048,1004.054748);
  240.                         SPI(playerid,7);
  241.                         SCM(playerid,GREEN,"You have teleported to ammunation range successfully");
  242.                         GT(playerid,"~b~Welcome to~r~ ammunation range",5000,3);
  243.  
  244.  
  245.                     }
  246.  
  247.  
  248.                 }
  249.                 case 4:
  250.  
  251.  
  252.                 {
  253.                     if(VEH(playerid))
  254.  
  255.  
  256.                     {
  257.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  258.  
  259.  
  260.                     }
  261.                     else
  262.  
  263.  
  264.                     {
  265.                         SPP(playerid,223.431976,1872.400268,13.73437);
  266.                         SPI(playerid,0);
  267.                         SCM(playerid,GREEN,"You have teleported to Area 51 successfully");
  268.                         GT(playerid,"~b~Welcome to~r~ area 51",5000,3);
  269.  
  270.  
  271.                     }
  272.  
  273.  
  274.                 }
  275.                 case 5:
  276.  
  277.  
  278.                 {
  279.                     if(VEH(playerid))
  280.  
  281.  
  282.                     {
  283.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  284.  
  285.  
  286.                     }
  287.                     else
  288.  
  289.  
  290.                     {
  291.                         SPP(playerid,-729.276000,503.086944,1371.971801);
  292.                         SPI(playerid,1);
  293.                         SCM(playerid,GREEN,"You have teleported to Liberty City Outside successfully");
  294.                         GT(playerid,"~b~Welcome to~r~ Liberty City ~n~ ~g~Outside",5000,3);
  295.  
  296.  
  297.                     }
  298.  
  299.  
  300.                 }
  301.                 case 6:
  302.  
  303.  
  304.                 {
  305.                     if(VEH(playerid))
  306.  
  307.  
  308.                     {
  309.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  310.  
  311.  
  312.                     }
  313.                     else
  314.  
  315.  
  316.                     {
  317.                         SPP(playerid,-794.806396,497.738037,1376.195312);
  318.                         SPI(playerid,1);
  319.                         SCM(playerid,GREEN,"You have teleported to Liberty City Inside successfully");
  320.                         GT(playerid,"~b~Welcome to~r~ Liberty City ~n~ ~g~Inside",5000,3);
  321.  
  322.  
  323.                     }
  324.  
  325.  
  326.                 }
  327.                 case 7:
  328.  
  329.  
  330.                 {
  331.                     if(VEH(playerid))
  332.  
  333.  
  334.                     {
  335.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  336.  
  337.  
  338.                     }
  339.                     else
  340.  
  341.  
  342.                     {
  343.                         SPP(playerid,1412.639892,-1.787510,1000.924377);
  344.                         SPI(playerid,1);
  345.                         SCM(playerid,GREEN,"You have teleported to WareHouse 1 successfully");
  346.                         GT(playerid,"~b~Welcome to~r~ WareHouse 1",5000,3);
  347.  
  348.  
  349.                     }
  350.  
  351.  
  352.                 }
  353.                 case 8:
  354.  
  355.  
  356.                 {
  357.                     if(VEH(playerid))
  358.  
  359.  
  360.                     {
  361.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  362.  
  363.  
  364.                     }
  365.                     else
  366.  
  367.  
  368.                     {
  369.                         SPP(playerid,1302.519897,-1.787510,1001.028259);
  370.                         SPI(playerid,18);
  371.                         SCM(playerid,GREEN,"You have teleported to WareHouse 2 successfully");
  372.                         GT(playerid,"~b~Welcome to~r~ WareHouse 2",5000,3);
  373.  
  374.  
  375.                     }
  376.  
  377.  
  378.                 }
  379.                 case 9:
  380.  
  381.  
  382.                 {
  383.                     if(VEH(playerid))
  384.  
  385.  
  386.                     {
  387.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  388.  
  389.  
  390.                     }
  391.                     else
  392.  
  393.  
  394.                     {
  395.                         SPP(playerid,2315.952880,-1.618174,26.742187);
  396.                         SPI(playerid,0);
  397.                         SCM(playerid,GREEN,"You have teleported to Bank interior successfully");
  398.                         GT(playerid,"~b~Welcome to~r~ Bank",5000,3);
  399.  
  400.  
  401.                     }
  402.  
  403.  
  404.                 }
  405.                 case 10:
  406.  
  407.  
  408.                 {
  409.                     if(VEH(playerid))
  410.  
  411.  
  412.                     {
  413.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  414.  
  415.  
  416.                     }
  417.                     else
  418.  
  419.  
  420.                     {
  421.                         SPP(playerid,-1444.645507,-664.526000,1053.572998);
  422.                         SPI(playerid,4);
  423.                         SCM(playerid,GREEN,"You have teleported to Dirt Track successfully");
  424.                         GT(playerid,"~b~Welcome to~r~ Dirt Track",5000,3);
  425.  
  426.  
  427.                     }
  428.  
  429.  
  430.                 }
  431.                 case 11:
  432.  
  433.  
  434.                 {
  435.                     if(VEH(playerid))
  436.  
  437.  
  438.                     {
  439.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  440.  
  441.  
  442.                     }
  443.                     else
  444.  
  445.  
  446.                     {
  447.                         SPP(playerid,-2640.762939,1406.682006,906.460937);
  448.                         SPI(playerid,3);
  449.                         SCM(playerid,GREEN,"You have teleported to Pleasure Domes successfully");
  450.                         GT(playerid,"~b~Welcome to~r~ Pleasure Domes",5000,3);
  451.  
  452.  
  453.                     }
  454.  
  455.  
  456.                 }
  457.                 case 12:
  458.  
  459.  
  460.                 {
  461.                     if(VEH(playerid))
  462.  
  463.  
  464.                     {
  465.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  466.  
  467.  
  468.                     }
  469.                     else
  470.  
  471.  
  472.                     {
  473.                         SPP(playerid,-975.975708,1060.983032,1345.671875);
  474.                         SPI(playerid,10);
  475.                         SCM(playerid,GREEN,"You have teleported to RC battle field successfully");
  476.                         GT(playerid,"~b~Welcome to~r~ Battle field",5000,3);
  477.  
  478.  
  479.                     }
  480.  
  481.  
  482.                 }
  483.                 case 13:
  484.  
  485.  
  486.                 {
  487.                     if(VEH(playerid))
  488.  
  489.  
  490.                     {
  491.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  492.  
  493.  
  494.                     }
  495.                     else
  496.  
  497.  
  498.                     {
  499.                         SPP(playerid,246.375991,109.245994,1003.218750);
  500.                         SPI(playerid,10);
  501.                         SCM(playerid,GREEN,"You have teleported to Sanfierro Police HQ successfully");
  502.                         GT(playerid,"~b~Welcome to~r~ SF Police HQ",5000,3);
  503.  
  504.  
  505.                     }
  506.  
  507.  
  508.                 }
  509.                 case 14:
  510.  
  511.  
  512.                 {
  513.                     if(VEH(playerid))
  514.  
  515.  
  516.                     {
  517.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  518.  
  519.  
  520.                     }
  521.                     else
  522.  
  523.  
  524.                     {
  525.                         SPP(playerid,246.783996,63.900199,1003.640625);
  526.                         SPI(playerid,6);
  527.                         SCM(playerid,GREEN,"You have teleported to Los Santos Police HQ successfully");
  528.                         GT(playerid,"~b~Welcome to~r~ LS Police HQ",5000,3);
  529.  
  530.  
  531.                     }
  532.  
  533.  
  534.                 }
  535.                 case 15:
  536.  
  537.  
  538.                 {
  539.                     if(VEH(playerid))
  540.  
  541.  
  542.                     {
  543.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  544.  
  545.  
  546.                     }
  547.                     else
  548.  
  549.  
  550.                     {
  551.                         SPP(playerid,288.745971,169.350997,1007.171875);
  552.                         SPI(playerid,3);
  553.                         SCM(playerid,GREEN,"You have teleported to Las Venturas Police HQ successfully");
  554.                         GT(playerid,"~b~Welcome to~r~ LV Police HQ",5000,3);
  555.  
  556.  
  557.                     }
  558.  
  559.  
  560.                 }
  561.                 case 16:
  562.  
  563.  
  564.                 {
  565.                     if(VEH(playerid))
  566.  
  567.  
  568.                     {
  569.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  570.  
  571.  
  572.                     }
  573.                     else
  574.  
  575.  
  576.                     {
  577.                         SPP(playerid,-1398.065307,-217.028900,1051.115844);
  578.                         SPI(playerid,7);
  579.                         SCM(playerid,GREEN,"You have teleported to 8-Track successfully");
  580.                         GT(playerid,"~b~Welcome to~r~ 8-Track",5000,3);
  581.  
  582.  
  583.                     }
  584.  
  585.  
  586.                 }
  587.                 case 17:
  588.  
  589.  
  590.                 {
  591.                     if(VEH(playerid))
  592.  
  593.  
  594.                     {
  595.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  596.  
  597.  
  598.                     }
  599.                     else
  600.  
  601.  
  602.                     {
  603.                         SPP(playerid,-1398.103515,937.631164,1036.479125);
  604.                         SPI(playerid,15);
  605.                         SCM(playerid,GREEN,"You have teleported to BloodBowl successfully");
  606.                         GT(playerid,"~b~Welcome to~r~ BloodBowl",5000,3);
  607.  
  608.  
  609.                     }
  610.  
  611.  
  612.                 }
  613.                 case 18:
  614.  
  615.                 {
  616.                     if(VEH(playerid))
  617.  
  618.                     {
  619.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  620.  
  621.                     }
  622.                     else
  623.  
  624.                     {
  625.                         SPP(playerid,-1465.268676,1557.868286,1052.531250);
  626.                         SPI(playerid,14);
  627.                         SCM(playerid,GREEN,"You have teleported to KickStart successfully");
  628.                         GT(playerid,"~b~Welcome to~r~ KickStart",5000,3);
  629.  
  630.                     }
  631.  
  632.                 }
  633.                 case 19:
  634.  
  635.                 {
  636.                     if(VEH(playerid))
  637.  
  638.                     {
  639.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  640.  
  641.                     }
  642.                     else
  643.  
  644.                     {
  645.                         SPP(playerid,2131.507812,1600.818481,1008.359375);
  646.                         SPI(playerid,1);
  647.                         SCM(playerid,GREEN,"You have teleported to hidden room successfully");
  648.                         GT(playerid,"~b~Welcome to~r~ Hidden Room",5000,3);
  649.  
  650.                     }
  651.  
  652.                 }
  653.                     case 20:
  654.                     {
  655.                    
  656. if(VEH(playerid))
  657.  
  658.                     {
  659.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  660.  
  661.                     }
  662.                     else
  663.  
  664.                     {
  665.                         SPP(playerid,-2159.122802,641.517517,1052.381713);
  666.                         SPI(playerid,1);
  667.                         SCM(playerid,GREEN,"You have teleported to woozie's office successfully");
  668.                         GT(playerid,"~b~Welcome to~r~ Woozie's Office",5000,3);
  669.  
  670.                     }
  671.                     }
  672.                         case 21:
  673.                         {
  674.                         if(VEH(playerid))
  675.  
  676.                     {
  677.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  678.  
  679.                     }
  680.                         else
  681.  
  682.                     {
  683.                         SPP(playerid,384.808624,173.804992,1008.382812);
  684.                         SPI(playerid,3);
  685.                         SCM(playerid,GREEN,"You have teleported to planning department successfully");
  686.                         GT(playerid,"~b~Welcome to~r~ Planning Dept",5000,3);
  687.  
  688.                     }
  689.                     }
  690.                          case 22:
  691.                         {
  692.                         if(VEH(playerid))
  693.  
  694.                     {
  695.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  696.  
  697.                     }
  698.                         else
  699.  
  700.                     {
  701.                         SPP(playerid,772.111999,-3.898649,1000.728820);
  702.                         SPI(playerid,5);
  703.                         SCM(playerid,GREEN,"You have teleported to Los Santos Gym successfully");
  704.                         GT(playerid,"~b~Welcome to~r~ LS GYM",5000,3);
  705.  
  706.                     }
  707.                     }
  708.                          case 23:
  709.                         {
  710.                         if(VEH(playerid))
  711.  
  712.                     {
  713.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  714.  
  715.                     }
  716.                         else
  717.  
  718.                     {
  719.                         SPP(playerid,773.579956,-77.096694,1000.655029);
  720.                         SPI(playerid,7);
  721.                         SCM(playerid,GREEN,"You have teleported to Las Venturas Gym successfully");
  722.                         GT(playerid,"~b~Welcome to~r~ LV GYM",5000,3);
  723.  
  724.                     }
  725.                     }
  726.                          case 24:
  727.                         {
  728.                         if(VEH(playerid))
  729.  
  730.                     {
  731.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  732.  
  733.                     }
  734.                         else
  735.  
  736.                     {
  737.                         SPP(playerid,774.213989,-48.924297,1000.585937);
  738.                         SPI(playerid,6);
  739.                         SCM(playerid,GREEN,"You have teleported to San Fierro Gym successfully");
  740.                         GT(playerid,"~b~Welcome to~r~ SF GYM",5000,3);
  741.  
  742.                     }
  743.                     }
  744.                          case 25:
  745.                         {
  746.                         if(VEH(playerid))
  747.  
  748.                     {
  749.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  750.  
  751.                     }
  752.                         else
  753.  
  754.                     {
  755.                         SPP(playerid,2543.462646,-1308.379882,1026.728393);
  756.                         SPI(playerid,2);
  757.                         SCM(playerid,GREEN,"You have teleported to Crack Factory successfully");
  758.                         GT(playerid,"~b~Welcome to~r~ Crack Factory",5000,3);
  759.  
  760.                     }
  761.                     }
  762.                          case 26:
  763.                         {
  764.                         if(VEH(playerid))
  765.  
  766.                     {
  767.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  768.  
  769.                     }
  770.                         else
  771.  
  772.                     {
  773.                         SPP(playerid,-1827.147338,7.207417,1061.143554);
  774.                         SPI(playerid,14);
  775.                         SCM(playerid,GREEN,"You have teleported to Airport Ticket Desks successfully");
  776.                         GT(playerid,"~b~Welcome to~r~~n~ Airport Ticket Desks",5000,3);
  777.  
  778.                     }
  779.                     }
  780.                          case 27:
  781.                         {
  782.                         if(VEH(playerid))
  783.  
  784.                     {
  785.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  786.  
  787.                     }
  788.                         else
  789.  
  790.                     {
  791.                         SPP(playerid,-1861.936889,54.908092,1061.143554);
  792.                         SPI(playerid,14);
  793.                         SCM(playerid,GREEN,"You have teleported to Airport Baggage Reclaim successfully");
  794.                         GT(playerid,"~b~Welcome to~r~~n~ Airport Baggage Reclaim",5000,3);
  795.  
  796.                     }
  797.                     }
  798.                          case 28:
  799.                         {
  800.                         if(VEH(playerid))
  801.  
  802.                     {
  803.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  804.  
  805.                     }
  806.                         else
  807.  
  808.                     {
  809.                         SPP(playerid,963.418762,2108.292480,1011.030273);
  810.                         SPI(playerid,1);
  811.                         SCM(playerid,GREEN,"You have teleported to Meat Factory successfully");
  812.                         GT(playerid,"~b~Welcome to~r~ Meat Factory",5000,3);
  813.  
  814.                     }
  815.                     }
  816.                          case 29:
  817.                         {
  818.                         if(VEH(playerid))
  819.  
  820.                     {
  821.                         SCM(playerid,RED,"[ERROR]:You cannot teleport while in a vehicle");
  822.  
  823.                     }
  824.                         else
  825.  
  826.                     {
  827.                         SPP(playerid,833.269775,10.588416,1004.179687);
  828.                         SPI(playerid,3);
  829.                         SCM(playerid,GREEN,"You have teleported to Betting Shop successfully");
  830.                         GT(playerid,"~b~Welcome to~r~ Betting Shop",5000,3);
  831.  
  832.                     }
  833.                     }
  834.  
  835.  
  836.  
  837.             }
  838.             return 1;
  839.  
  840.         }
  841.  
  842.     }
  843.     return 0;
  844.  
  845. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement