FailerZ

Debug Mode [D-Mode]

May 22nd, 2015
536
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 65.48 KB | None | 0 0
  1. //      /$$$$$$$$            /$$ /$$                     /$$$$$$$$
  2. //      | $$_____/          |__/| $$                    |_____ $$
  3. //      | $$        /$$$$$$  /$$| $$  /$$$$$$   /$$$$$$      /$$/
  4. //      | $$$$$    |____  $$| $$| $$ /$$__  $$ /$$__  $$    /$$/
  5. //      | $$__/     /$$$$$$$| $$| $$| $$$$$$$$| $$  \__/   /$$/
  6. //      | $$       /$$__  $$| $$| $$| $$_____/| $$        /$$/
  7. //      | $$      |  $$$$$$$| $$| $$|  $$$$$$$| $$       /$$$$$$$$
  8. //      |__/       \_______/|__/|__/ \_______/|__/      |________/
  9.  
  10. /*******************************************************************************
  11. *                        Debug Mode [D-Mode] - by FailerZ                      *
  12. *                                  Copyright ©                                *
  13. *******************************************************************************/
  14.  
  15. //================================ [Includes] ==================================
  16. #include          <a_samp>             //Credits to Kalcor/Kye
  17. #include          <zcmd>               //Credits to Zeex
  18. #include          <sscanf2>            //Credits to Y_Less
  19. #include          <mapandreas>         //Credits to RyDeR`
  20. //================================ [Defines] ===================================
  21. //Colors
  22. #define          COL_GREY             "{8C8C8C}"
  23. #define          COL_WHITE            "{FAFAFA}"
  24. #define          COL_ORANGE           "{FF6E00}"
  25. #define          COL_RED              "{FF0005}"
  26. #define          COL_DRED             "{AF0000}"
  27. #define          COL_GREEN            "{0FFF00}"
  28. #define          COL_PURPLE           "{B400FF}"
  29. #define          COL_YELLOW           "{F5FF00}"
  30. #define          COL_BEGE             "{FFA97F}"
  31. //Dialogs
  32. #define          DIALOG_PANEL         100
  33. #define          DIALOG_SPAWN         101
  34. #define          DIALOG_TOOLS         102
  35. #define          DIALOG_SETTINGS      103
  36. #define          DIALOG_WEAPON        104
  37. #define          DIALOG_AMMO          105
  38. #define          DIALOG_SVEHICLE      106
  39. #define          DIALOG_VCOLOR1       107
  40. #define          DIALOG_VCOLOR2       108
  41. #define          DIALOG_SKIN          109
  42. #define          DIALOG_PERM          110
  43. #define          DIALOG_TELE          111
  44. #define          DIALOG_CONFIRMTELE   112
  45. #define          DIALOG_AXIS          113
  46. #define          DIALOG_INTER         114
  47. //Easy Codes
  48. #define          SCM                  SendClientMessage
  49. #define          function%0(%1)       forward%0(%1); public%0(%1)
  50. //Others
  51. #define          FILTERSCRIPT
  52. #define          TAG                  "{AF0000}[D-Mode]{FFA97F}"
  53. //================================= [Script] ===================================
  54. //Variables & Arrays
  55. new Text:Textdraw0, Text:Textdraw1;
  56. new Text:Textdraw2, Text:Textdraw3, Text:Textdraw4, Text:Textdraw5, Text:Textdraw6;
  57. new Text:Textdraw7[MAX_PLAYERS], Text:Textdraw8[MAX_PLAYERS], Text:Textdraw9[MAX_PLAYERS], Text:Textdraw10[MAX_PLAYERS], Text:Textdraw11;
  58. new Text:Textdraw12[MAX_PLAYERS], Text:Textdraw13[MAX_PLAYERS], Text:Textdraw14[MAX_PLAYERS], Text:Textdraw15[MAX_PLAYERS], Text:Textdraw16;
  59. new Text:Textdraw17[MAX_PLAYERS], Text:Textdraw18[MAX_PLAYERS], Text:Textdraw19[MAX_PLAYERS], Text:Textdraw20[MAX_PLAYERS], Text:Textdraw21;
  60. new Text:Textdraw22[MAX_PLAYERS], Text:Textdraw23[MAX_PLAYERS], Text:Textdraw24[MAX_PLAYERS], Text:Textdraw25, Text:Textdraw26[MAX_PLAYERS];
  61. new Text:Textdraw27[MAX_PLAYERS], Text:Textdraw28, Text:Textdraw29[MAX_PLAYERS], Text:Textdraw30[MAX_PLAYERS], Text:Textdraw31;
  62. new Text:Textdraw32[MAX_PLAYERS], Text:Textdraw33[MAX_PLAYERS], Text:Textdraw34[MAX_PLAYERS];
  63.  
  64. new bool:IsDebugging[MAX_PLAYERS], bool:Allowed[MAX_PLAYERS], bool:IsUsingDebugInfo[MAX_PLAYERS], bool:JustSpawned[MAX_PLAYERS];
  65. new bool:Frozen[MAX_PLAYERS], bool:Teleport[MAX_PLAYERS];
  66. new Veh;
  67.  
  68. new InteriorDialogNames[146][] =
  69. {
  70.     "Four Dragons' Managerial Suite",
  71.     "Ganton Gym",
  72.     "Brothel",
  73.     "Brothel2",
  74.     "Inside Track Betting",
  75.     "Blastin' Fools Records",
  76.     "The Big Spread Ranch",
  77.     "Warehouse 1",
  78.     "Warehouse 2",
  79.     "B Dup's Apartment",
  80.     "B Dup's Crack Palace",
  81.     "Wheel Arch Angels",
  82.     "OG Loc's House",
  83.     "Barber Shop",
  84.     "Planning Department",
  85.     "Las Venturas Police Department",
  86.     "Pro-Laps",
  87.     "Sex Shop",
  88.     "Las Venturas Tattoo parlor",
  89.     "Lost San Fierro Tattoo parlor",
  90.     "24/7 (version 1)",
  91.     "Diner 1",
  92.     "Pizza Stack",
  93.     "Rusty Brown's Donuts",
  94.     "Ammu-nation",
  95.     "Victim",
  96.     "Loco Low Co",
  97.     "San Fierro Police Department",
  98.     "24/7 (version 2 - large)",
  99.     "Below The Belt Gym (Las Venturas)",
  100.     "Transfenders",
  101.     "World of Coq",
  102.     "Ammu-nation (version 2)",
  103.     "SubUrban",
  104.     "Denise's Bedroom",
  105.     "Helena's Barn",
  106.     "Barbara's Love nest",
  107.     "San Fierro Garage",
  108.     "Oval Stadium",
  109.     "8-Track Stadium",
  110.     "The Pig Pen (strip club 2)",
  111.     "Four Dragons",
  112.     "Liberty City",
  113.     "Ryder's house",
  114.     "Sweet's House",
  115.     "RC Battlefield",
  116.     "The Johnson House",
  117.     "Burger shot",
  118.     "Caligula's Casino",
  119.     "Katie's Lovenest",
  120.     "Barber Shop 2 (Reece's)",
  121.     "Angel Pine Trailer",
  122.     "24/7 (version 3)",
  123.     "Zip",
  124.     "The Pleasure Domes",
  125.     "Madd Dogg's Mansion",
  126.     "Big Smoke's Crack Palace",
  127.     "Burning Desire Building",
  128.     "Wu-Zi Mu's",
  129.     "Abandoned AC tower",
  130.     "Wardrobe/Changing room",
  131.     "Didier Sachs",
  132.     "Casino (Redsands West)",
  133.     "Kickstart Stadium",
  134.     "Club",
  135.     "Atrium",
  136.     "Los Santos Tattoo Parlor",
  137.     "Safe House group 1",
  138.     "Safe House group 2",
  139.     "Safe House group 3",
  140.     "Safe House group 4",
  141.     "Sherman Dam",
  142.     "24/7 (version 4)",
  143.     "Jefferson Motel",
  144.     "Jet Interior",
  145.     "The Welcome Pump",
  146.     "Burglary House X1",
  147.     "Burglary House X2",
  148.     "Burglary House X3",
  149.     "Burglary House X4",
  150.     "Binco",
  151.     "4 Burglary houses",
  152.     "Blood Bowl Stadium",
  153.     "Budget Inn Motel Room",
  154.     "Palamino Bank",
  155.     "Palamino Diner",
  156.     "Dillimore Gas Station",
  157.     "Lil' Probe Inn",
  158.     "Torreno's Ranch",
  159.     "Zombotech - lobby area",
  160.     "Crypt in LS cemetery (temple)",
  161.     "Blueberry Liquor Store",
  162.     "Pair of Burglary Houses",
  163.     "Crack Den",
  164.     "Burglary House X11",
  165.     "Burglary House X12",
  166.     "Ammu-nation (version 3)",
  167.     "Jay's Diner",
  168.     "24/7 (version 5)",
  169.     "Warehouse 3",
  170.     "Michelle's Love Nest*",
  171.     "Burglary House X14",
  172.     "Sindacco Abatoir",
  173.     "K.A.C.C. Military Fuels Depot",
  174.     "Area 69",
  175.     "Burglary House X13",
  176.     "Unused Safe House",
  177.     "Millie's Bedroom",
  178.     "Barber Shop",
  179.     "Dirtbike Stadium",
  180.     "Cobra Gym",
  181.     "Los Santos Police Department",
  182.     "Los Santos Airport",
  183.     "Burglary House X15",
  184.     "Burglary House X16",
  185.     "Burglary House X17",
  186.     "Bike School",
  187.     "Francis International Airport",
  188.     "Vice Stadium",
  189.     "Burglary House X18",
  190.     "Burglary House X19",
  191.     "Zero's RC Shop",
  192.     "Ammu-nation (version 4)",
  193.     "Ammu-nation (version 5)",
  194.     "Burglary House X20",
  195.     "24/7 (version 6)",
  196.     "Secret Valley Diner",
  197.     "Rosenberg's Office in Caligulas",
  198.     "Fanny Batter's Whore House",
  199.     "Colonel Furhberger's",
  200.     "Cluckin' Bell",
  201.     "The Camel's Toe Safehouse",
  202.     "Caligula's Roof",
  203.     "Old Venturas Strip Casino",
  204.     "Driving School",
  205.     "Verdant Bluffs Safehouse",
  206.     "Bike School",
  207.     "Andromada",
  208.     "Four Dragons' Janitor's Office",
  209.     "Bar",
  210.     "Burglary House X21",
  211.     "Willowfield Safehouse",
  212.     "Burglary House X22",
  213.     "Burglary House X23",
  214.     "Otto's Autos",
  215.     "Wang Cars"
  216. };
  217. new Float:InteriorDialogData[146][4] =
  218. {
  219.     {2003.1178, 1015.1948, 33.008, 351.5789},
  220.     {770.8033, -0.7033, 1000.7267, 22.8599},
  221.     {974.0177, -9.5937, 1001.1484, 22.6045},
  222.     {961.9308, -51.9071, 1001.1172, 95.5381},
  223.     {830.6016, 5.9404, 1004.1797, 125.8149},
  224.     {1037.8276, 0.397, 1001.2845, 353.9335},
  225.     {1212.1489, -28.5388, 1000.9531, 170.5692},
  226.     {1290.4106, 1.9512, 1001.0201, 179.9419},
  227.     {1412.1472, -2.2836, 1000.9241, 114.661},
  228.     {1527.0468, -12.0236, 1002.0971, 350.0013},
  229.     {1523.5098, -47.8211, 1002.2699, 262.7038},
  230.     {612.2191, -123.9028, 997.9922, 266.5704},
  231.     {512.9291, -11.6929, 1001.5653, 198.7669},
  232.     {418.4666, -80.4595, 1001.8047, 343.2358},
  233.     {386.5259, 173.6381, 1008.3828, 63.7399},
  234.     {288.4723, 170.0647, 1007.1794, 22.0477},
  235.     {206.4627, -137.7076, 1003.0938, 10.9347},
  236.     {-100.2674, -22.9376, 1000.7188, 17.285},
  237.     {-201.2236, -43.2465, 1002.2734, 45.8613},
  238.     {-202.9381, -6.7006, 1002.2734, 204.2693},
  239.     {-25.7220, -187.8216, 1003.5469, 5.0760},
  240.     {454.9853, -107.2548, 999.4376, 309.0195},
  241.     {372.5565, -131.3607, 1001.4922, 354.2285},
  242.     {378.026, -190.5155, 1000.6328, 141.0245},
  243.     {315.244, -140.8858, 999.6016, 7.4226},
  244.     {225.0306, -9.1838, 1002.218, 85.5322},
  245.     {611.3536, -77.5574, 997.9995, 320.9263},
  246.     {246.0688, 108.9703, 1003.2188, 0.2922},
  247.     {6.0856, -28.8966, 1003.5494, 5.0365},
  248.     {773.7318, -74.6957, 1000.6542, 5.2304},
  249.     {621.4528, -23.7289, 1000.9219, 15.6789},
  250.     {445.6003, -6.9823, 1000.7344, 172.2105},
  251.     {285.8361, -39.0166, 1001.5156, 0.7529},
  252.     {204.1174, -46.8047, 1001.8047, 357.5777},
  253.     {245.2307, 304.7632, 999.1484, 273.4364},
  254.     {290.623, 309.0622, 999.1484, 89.9164},
  255.     {322.5014, 303.6906, 999.1484, 8.1747},
  256.     {-2041.2334, 178.3969, 28.8465, 156.2153},
  257.     {-1402.6613, 106.3897, 1032.2734, 105.1356},
  258.     {-1403.0116, -250.4526, 1043.5341, 355.8576},
  259.     {1204.6689, -13.5429, 1000.9219, 350.0204},
  260.     {2016.1156, 1017.1541, 996.875, 88.0055},
  261.     {-741.8495, 493.0036, 1371.9766, 71.7782},
  262.     {2447.8704, -1704.4509, 1013.5078, 314.5253},
  263.     {2527.0176, -1679.2076, 1015.4986, 260.9709},
  264.     {-1129.8909, 1057.5424, 1346.4141, 274.5268},
  265.     {2496.0549, -1695.1749, 1014.7422, 179.2174},
  266.     {366.0248, -73.3478, 1001.5078, 292.0084},
  267.     {2233.9363, 1711.8038, 1011.6312, 184.3891},
  268.     {269.6405, 305.9512, 999.1484, 215.6625},
  269.     {414.2987, -18.8044, 1001.8047, 41.4265},
  270.     {1.1853, -3.2387, 999.4284, 87.5718},
  271.     {-30.9875, -89.6806, 1003.5469, 359.8401},
  272.     {161.4048, -94.2416, 1001.8047, 0.7938},
  273.     {-2638.8232, 1407.3395, 906.4609, 94.6794},
  274.     {1267.8407, -776.9587, 1091.9063, 231.3418},
  275.     {2536.5322, -1294.8425, 1044.125, 254.9548},
  276.     {2350.1597, -1181.0658, 1027.9766, 99.1864},
  277.     {-2158.6731, 642.09, 1052.375, 86.5402},
  278.     {419.8936, 2537.1155, 10.0, 67.6537},
  279.     {256.9047, -41.6537, 1002.0234, 85.8774},
  280.     {204.1658, -165.7678, 1000.5234, 181.7583},
  281.     {1133.35, -7.8462, 1000.6797, 165.8482},
  282.     {-1420.4277, 1616.9221, 1052.5313, 159.1255},
  283.     {493.1443, -24.2607, 1000.6797, 356.9864},
  284.     {1727.2853, -1642.9451, 20.2254, 172.4193},
  285.     {-202.842, -24.0325, 1002.2734, 252.8154},
  286.     {2233.6919, -1112.8107, 1050.8828, 8.6483},
  287.     {1211.2484, 1049.0234, 359.941, 170.9341},
  288.     {2319.1272, -1023.9562, 1050.2109, 167.3959},
  289.     {2261.0977, -1137.8833, 1050.6328, 266.88},
  290.     {-944.2402, 1886.1536, 5.0051, 179.8548},
  291.     {-26.1856, -140.9164, 1003.5469, 2.9087},
  292.     {2217.281, -1150.5349, 1025.7969, 273.7328},
  293.     {1.5491, 23.3183, 1199.5938, 359.9054},
  294.     {681.6216, -451.8933, -25.6172, 166.166},
  295.     {234.6087, 1187.8195, 1080.2578, 349.4844},
  296.     {225.5707, 1240.0643, 1082.1406, 96.2852},
  297.     {224.288, 1289.1907, 1082.1406, 359.868},
  298.     {239.2819, 1114.1991, 1080.9922, 270.2654},
  299.     {207.5219, -109.7448, 1005.1328, 358.62},
  300.     {295.1391, 1473.3719, 1080.2578, 352.9526},
  301.     {-1417.8927, 932.4482, 1041.5313, 0.7013},
  302.     {446.3247, 509.9662, 1001.4195, 330.5671},
  303.     {2306.3826, -15.2365, 26.7496, 274.49},
  304.     {2331.8984, 6.7816, 26.5032, 100.2357},
  305.     {663.0588, -573.6274, 16.3359, 264.9829},
  306.     {-227.5703, 1401.5544, 27.7656, 269.2978},
  307.     {-688.1496, 942.0826, 13.6328, 177.6574},
  308.     {-1916.1268, 714.8617, 46.5625, 152.2839},
  309.     {818.7714, -1102.8689, 25.794, 91.1439},
  310.     {255.2083, -59.6753, 1.5703, 1.4645},
  311.     {446.626, 1397.738, 1084.3047, 343.9647},
  312.     {227.3922, 1114.6572, 1080.9985, 267.459},
  313.     {227.7559, 1114.3844, 1080.9922, 266.2624},
  314.     {261.1165, 1287.2197, 1080.2578, 178.9149},
  315.     {291.7626, -80.1306, 1001.5156, 290.2195},
  316.     {449.0172, -88.9894, 999.5547, 89.6608},
  317.     {-27.844, -26.6737, 1003.5573, 184.3118},
  318.     {2135.2004, -2276.2815, 20.6719, 318.59},
  319.     {306.1966, 307.819, 1003.3047, 203.1354},
  320.     {24.3769, 1341.1829, 1084.375, 8.3305},
  321.     {963.0586, 2159.7563, 1011.0303, 175.313},
  322.     {2548.4807, 2823.7429, 10.8203, 270.6003},
  323.     {215.1515, 1874.0579, 13.1406, 177.5538},
  324.     {221.6766, 1142.4962, 1082.6094, 184.9618},
  325.     {2323.7063, -1147.6509, 1050.7101, 206.5352},
  326.     {344.9984, 307.1824, 999.1557, 193.643},
  327.     {411.9707, -51.9217, 1001.8984, 173.3449},
  328.     {-1421.5618, -663.8262, 1059.5569, 170.9341},
  329.     {773.8887, -47.7698, 1000.5859, 10.7161},
  330.     {246.6695, 65.8039, 1003.6406, 7.9562},
  331.     {-1864.9434, 55.7325, 1055.5276, 85.8541},
  332.     {-262.1759, 1456.6158, 1084.3672, 82.459},
  333.     {22.861, 1404.9165, 1084.4297, 349.6158},
  334.     {140.3679, 1367.8837, 1083.8621, 349.2372},
  335.     {1494.8589, 1306.48, 1093.2953, 196.065},
  336.     {-1813.213, -58.012, 1058.9641, 335.3199},
  337.     {-1401.067, 1265.3706, 1039.8672, 178.6483},
  338.     {234.2826, 1065.229, 1084.2101, 4.3864},
  339.     {-68.5145, 1353.8485, 1080.2109, 3.5742},
  340.     {-2240.1028, 136.973, 1035.4141, 269.0954},
  341.     {297.144, -109.8702, 1001.5156, 20.2254},
  342.     {316.5025, -167.6272, 999.5938, 10.3031},
  343.     {-285.2511, 1471.197, 1084.375, 85.6547},
  344.     {-26.8339, -55.5846, 1003.5469, 3.9528},
  345.     {442.1295, -52.4782, 999.7167, 177.9394},
  346.     {2182.2017, 1628.5848, 1043.8723, 224.8601},
  347.     {748.4623, 1438.2378, 1102.9531, 0.6069},
  348.     {2807.3604, -1171.7048, 1025.5703, 193.7117},
  349.     {366.0002, -9.4338, 1001.8516, 160.528},
  350.     {2216.1282, -1076.3052, 1050.4844, 86.428},
  351.     {2268.5156, 1647.7682, 1084.2344, 99.7331},
  352.     {2236.6997, -1078.9478, 1049.0234, 2.5706},
  353.     {-2031.1196, -115.8287, 1035.1719, 190.1877},
  354.     {2365.1089, -1133.0795, 1050.875, 177.3947},
  355.     {1168.512, 1360.1145, 10.9293, 196.5933},
  356.     {315.4544, 976.5972, 1960.8511, 359.6368},
  357.     {1893.0731, 1017.8958, 31.8828, 86.1044},
  358.     {501.9578, -70.5648, 998.7578, 171.5706},
  359.     {-42.5267, 1408.23, 1084.4297, 172.068},
  360.     {2283.3118, 1139.307, 1050.8984, 19.7032},
  361.     {84.9244, 1324.2983, 1083.8594, 159.5582},
  362.     {260.7421, 1238.2261, 1084.2578, 84.3084},
  363.     {-1658.1656, 1215.0002, 7.25, 103.9074},
  364.     {-1961.6281, 295.2378, 35.4688, 264.4891}
  365. };
  366. new InteriorDialogInteriors[146][1] =
  367. {
  368.     {11},
  369.     {5},
  370.     {3},
  371.     {3},
  372.     {3},
  373.     {3},
  374.     {3},
  375.     {18},
  376.     {1},
  377.     {3},
  378.     {2},
  379.     {3},
  380.     {3},
  381.     {3},
  382.     {3},
  383.     {3},
  384.     {3},
  385.     {3},
  386.     {3},
  387.     {17},
  388.     {17},
  389.     {5},
  390.     {5},
  391.     {17},
  392.     {7},
  393.     {5},
  394.     {2},
  395.     {10},
  396.     {10},
  397.     {7},
  398.     {1},
  399.     {1},
  400.     {1},
  401.     {1},
  402.     {1},
  403.     {3},
  404.     {5},
  405.     {1},
  406.     {1},
  407.     {7},
  408.     {2},
  409.     {10},
  410.     {1},
  411.     {2},
  412.     {1},
  413.     {10},
  414.     {3},
  415.     {10},
  416.     {1},
  417.     {2},
  418.     {2},
  419.     {2},
  420.     {18},
  421.     {18},
  422.     {3},
  423.     {5},
  424.     {2},
  425.     {5},
  426.     {1},
  427.     {10},
  428.     {14},
  429.     {14},
  430.     {12},
  431.     {14},
  432.     {17},
  433.     {18},
  434.     {16},
  435.     {5},
  436.     {6},
  437.     {9},
  438.     {10},
  439.     {17},
  440.     {16},
  441.     {15},
  442.     {1},
  443.     {1},
  444.     {3},
  445.     {2},
  446.     {1},
  447.     {5},
  448.     {15},
  449.     {15},
  450.     {15},
  451.     {12},
  452.     {0},
  453.     {0},
  454.     {0},
  455.     {18},
  456.     {0},
  457.     {0},
  458.     {0},
  459.     {0},
  460.     {2},
  461.     {5},
  462.     {5},
  463.     {4},
  464.     {4},
  465.     {4},
  466.     {4},
  467.     {0},
  468.     {4},
  469.     {10},
  470.     {1},
  471.     {0},
  472.     {0},
  473.     {4},
  474.     {12},
  475.     {6},
  476.     {12},
  477.     {4},
  478.     {6},
  479.     {6},
  480.     {14},
  481.     {4},
  482.     {5},
  483.     {5},
  484.     {3},
  485.     {14},
  486.     {16},
  487.     {6},
  488.     {6},
  489.     {6},
  490.     {6},
  491.     {6},
  492.     {15},
  493.     {6},
  494.     {6},
  495.     {2},
  496.     {6},
  497.     {8},
  498.     {9},
  499.     {1},
  500.     {1},
  501.     {2},
  502.     {3},
  503.     {8},
  504.     {0},
  505.     {9},
  506.     {10},
  507.     {11},
  508.     {8},
  509.     {11},
  510.     {9},
  511.     {9},
  512.     {0},
  513.     {0}
  514. };
  515. //------------------------------------------------------------------------------
  516. //CallBacks & Functions
  517. public OnFilterScriptInit()
  518. {
  519.     print("---------------------------------");
  520.     print("| Debug Mode[D-Mode] by FailerZ |");
  521.     print("|             Loaded            |");
  522.     print("---------------------------------");
  523.    
  524.     Textdraw0 = TextDrawCreate(310.000000, 429.000000, "Debug Mode");
  525.     TextDrawAlignment(Textdraw0, 2);
  526.     TextDrawBackgroundColor(Textdraw0, 255);
  527.     TextDrawFont(Textdraw0, 0);
  528.     TextDrawLetterSize(Textdraw0, 0.500000, 1.799999);
  529.     TextDrawColor(Textdraw0, -1526726401);
  530.     TextDrawSetOutline(Textdraw0, 1);
  531.     TextDrawSetProportional(Textdraw0, 1);
  532.     TextDrawUseBox(Textdraw0, 1);
  533.     TextDrawBoxColor(Textdraw0, 16843158);
  534.     TextDrawTextSize(Textdraw0, 0.000000, 1050.000000);
  535.  
  536.     Textdraw1 = TextDrawCreate(303.000000, 429.000000, "_");
  537.     TextDrawAlignment(Textdraw1, 2);
  538.     TextDrawBackgroundColor(Textdraw1, 255);
  539.     TextDrawFont(Textdraw1, 0);
  540.     TextDrawLetterSize(Textdraw1, 0.500000, -0.500000);
  541.     TextDrawColor(Textdraw1, -939523841);
  542.     TextDrawSetOutline(Textdraw1, 1);
  543.     TextDrawSetProportional(Textdraw1, 1);
  544.     TextDrawUseBox(Textdraw1, 1);
  545.     TextDrawBoxColor(Textdraw1, 255);
  546.     TextDrawTextSize(Textdraw1, 0.000000, 1050.000000);
  547.    
  548.     Textdraw2 = TextDrawCreate(637.000000, 105.000000, "_");
  549.     TextDrawAlignment(Textdraw2, 2);
  550.     TextDrawBackgroundColor(Textdraw2, 255);
  551.     TextDrawFont(Textdraw2, 1);
  552.     TextDrawLetterSize(Textdraw2, 0.500000, 35.299999);
  553.     TextDrawColor(Textdraw2, -1);
  554.     TextDrawSetOutline(Textdraw2, 0);
  555.     TextDrawSetProportional(Textdraw2, 1);
  556.     TextDrawSetShadow(Textdraw2, 1);
  557.     TextDrawUseBox(Textdraw2, 1);
  558.     TextDrawBoxColor(Textdraw2, 16843158);
  559.     TextDrawTextSize(Textdraw2, 3.000000, 289.000000);
  560.  
  561.     Textdraw3 = TextDrawCreate(1018.000000, 104.000000, "_");
  562.     TextDrawAlignment(Textdraw3, 2);
  563.     TextDrawBackgroundColor(Textdraw3, 255);
  564.     TextDrawFont(Textdraw3, 0);
  565.     TextDrawLetterSize(Textdraw3, 0.500000, -0.500000);
  566.     TextDrawColor(Textdraw3, -939523841);
  567.     TextDrawSetOutline(Textdraw3, 1);
  568.     TextDrawSetProportional(Textdraw3, 1);
  569.     TextDrawUseBox(Textdraw3, 1);
  570.     TextDrawBoxColor(Textdraw3, 255);
  571.     TextDrawTextSize(Textdraw3, 0.000000, 1050.000000);
  572.  
  573.     Textdraw4 = TextDrawCreate(490.000000, 104.000000, "_");
  574.     TextDrawAlignment(Textdraw4, 2);
  575.     TextDrawBackgroundColor(Textdraw4, 255);
  576.     TextDrawFont(Textdraw4, 0);
  577.     TextDrawLetterSize(Textdraw4, 0.500000, 35.499977);
  578.     TextDrawColor(Textdraw4, -939523841);
  579.     TextDrawSetOutline(Textdraw4, 1);
  580.     TextDrawSetProportional(Textdraw4, 1);
  581.     TextDrawUseBox(Textdraw4, 1);
  582.     TextDrawBoxColor(Textdraw4, 255);
  583.     TextDrawTextSize(Textdraw4, -39.000000, -5.000000);
  584.  
  585.     Textdraw5 = TextDrawCreate(567.000000, 104.000000, "DEBUG INFO");
  586.     TextDrawAlignment(Textdraw5, 2);
  587.     TextDrawBackgroundColor(Textdraw5, 255);
  588.     TextDrawFont(Textdraw5, 2);
  589.     TextDrawLetterSize(Textdraw5, 0.500000, 1.799999);
  590.     TextDrawColor(Textdraw5, -1526726401);
  591.     TextDrawSetOutline(Textdraw5, 1);
  592.     TextDrawSetProportional(Textdraw5, 1);
  593.  
  594.     Textdraw6 = TextDrawCreate(1019.000000, 126.000000, "_");
  595.     TextDrawAlignment(Textdraw6, 2);
  596.     TextDrawBackgroundColor(Textdraw6, 255);
  597.     TextDrawFont(Textdraw6, 0);
  598.     TextDrawLetterSize(Textdraw6, 0.500000, -0.500000);
  599.     TextDrawColor(Textdraw6, -939523841);
  600.     TextDrawSetOutline(Textdraw6, 1);
  601.     TextDrawSetProportional(Textdraw6, 1);
  602.     TextDrawUseBox(Textdraw6, 1);
  603.     TextDrawBoxColor(Textdraw6, 255);
  604.     TextDrawTextSize(Textdraw6, 0.000000, 1050.000000);
  605.  
  606.     Textdraw11 = TextDrawCreate(1018.000000, 179.000000, "_");
  607.     TextDrawAlignment(Textdraw11, 2);
  608.     TextDrawBackgroundColor(Textdraw11, 255);
  609.     TextDrawFont(Textdraw11, 0);
  610.     TextDrawLetterSize(Textdraw11, 0.500000, -0.500000);
  611.     TextDrawColor(Textdraw11, -939523841);
  612.     TextDrawSetOutline(Textdraw11, 1);
  613.     TextDrawSetProportional(Textdraw11, 1);
  614.     TextDrawUseBox(Textdraw11, 1);
  615.     TextDrawBoxColor(Textdraw11, 255);
  616.     TextDrawTextSize(Textdraw11, 0.000000, 1050.000000);
  617.  
  618.     Textdraw16 = TextDrawCreate(1018.000000, 231.000000, "_");
  619.     TextDrawAlignment(Textdraw16, 2);
  620.     TextDrawBackgroundColor(Textdraw16, 255);
  621.     TextDrawFont(Textdraw16, 0);
  622.     TextDrawLetterSize(Textdraw16, 0.500000, -0.500000);
  623.     TextDrawColor(Textdraw16, -939523841);
  624.     TextDrawSetOutline(Textdraw16, 1);
  625.     TextDrawSetProportional(Textdraw16, 1);
  626.     TextDrawUseBox(Textdraw16, 1);
  627.     TextDrawBoxColor(Textdraw16, 255);
  628.     TextDrawTextSize(Textdraw16, 0.000000, 1050.000000);
  629.  
  630.     Textdraw21 = TextDrawCreate(1018.000000, 286.000000, "_");
  631.     TextDrawAlignment(Textdraw21, 2);
  632.     TextDrawBackgroundColor(Textdraw21, 255);
  633.     TextDrawFont(Textdraw21, 0);
  634.     TextDrawLetterSize(Textdraw21, 0.500000, -0.500000);
  635.     TextDrawColor(Textdraw21, -939523841);
  636.     TextDrawSetOutline(Textdraw21, 1);
  637.     TextDrawSetProportional(Textdraw21, 1);
  638.     TextDrawUseBox(Textdraw21, 1);
  639.     TextDrawBoxColor(Textdraw21, 255);
  640.     TextDrawTextSize(Textdraw21, 0.000000, 1050.000000);
  641.  
  642.     Textdraw25 = TextDrawCreate(1018.000000, 331.000000, "_");
  643.     TextDrawAlignment(Textdraw25, 2);
  644.     TextDrawBackgroundColor(Textdraw25, 255);
  645.     TextDrawFont(Textdraw25, 0);
  646.     TextDrawLetterSize(Textdraw25, 0.500000, -0.500000);
  647.     TextDrawColor(Textdraw25, -939523841);
  648.     TextDrawSetOutline(Textdraw25, 1);
  649.     TextDrawSetProportional(Textdraw25, 1);
  650.     TextDrawUseBox(Textdraw25, 1);
  651.     TextDrawBoxColor(Textdraw25, 255);
  652.     TextDrawTextSize(Textdraw25, 0.000000, 1050.000000);
  653.  
  654.     Textdraw28 = TextDrawCreate(1018.000000, 361.000000, "_");
  655.     TextDrawAlignment(Textdraw28, 2);
  656.     TextDrawBackgroundColor(Textdraw28, 255);
  657.     TextDrawFont(Textdraw28, 0);
  658.     TextDrawLetterSize(Textdraw28, 0.500000, -0.500000);
  659.     TextDrawColor(Textdraw28, -939523841);
  660.     TextDrawSetOutline(Textdraw28, 1);
  661.     TextDrawSetProportional(Textdraw28, 1);
  662.     TextDrawUseBox(Textdraw28, 1);
  663.     TextDrawBoxColor(Textdraw28, 255);
  664.     TextDrawTextSize(Textdraw28, 0.000000, 1050.000000);
  665.  
  666.     Textdraw31 = TextDrawCreate(1018.000000, 390.000000, "_");
  667.     TextDrawAlignment(Textdraw31, 2);
  668.     TextDrawBackgroundColor(Textdraw31, 255);
  669.     TextDrawFont(Textdraw31, 0);
  670.     TextDrawLetterSize(Textdraw31, 0.500000, -0.500000);
  671.     TextDrawColor(Textdraw31, -939523841);
  672.     TextDrawSetOutline(Textdraw31, 1);
  673.     TextDrawSetProportional(Textdraw31, 1);
  674.     TextDrawUseBox(Textdraw31, 1);
  675.     TextDrawBoxColor(Textdraw31, 255);
  676.     TextDrawTextSize(Textdraw31, 0.000000, 1050.000000);
  677.    
  678.     for(new i; i<GetMaxPlayers(); i++)
  679.     {
  680.         if(IsPlayerConnected(i))
  681.         {
  682.             Allowed[i] = false;
  683.             Teleport[i] = false;
  684.             JustSpawned[i] = true;
  685.             CreateDebugInfo(i);
  686.         }
  687.     }
  688.     return 1;
  689. }
  690. //------------------------------------------------------------------------------
  691. public OnFilterScriptExit()
  692. {
  693.     print("----------------------------------");
  694.     print("| Debug Mode [D-Mode] by FailerZ |");
  695.     print("|            Unloaded            |");
  696.     print("----------------------------------");
  697.    
  698.     for(new i; i<GetMaxPlayers(); i++)
  699.     {
  700.         if(IsPlayerConnected(i))
  701.         {
  702.             Allowed[i] = false;
  703.             Teleport[i] = false;
  704.             JustSpawned[i] = false;
  705.             HideDebugInfo(i);
  706.             HideDebugBar(i);
  707.         }
  708.     }
  709.    
  710.     DestroyAllTextDraws();
  711.     DestroyVehicle(Veh);
  712.     return 1;
  713. }
  714. //------------------------------------------------------------------------------
  715. public OnPlayerConnect(playerid)
  716. {
  717.     Allowed[playerid] = false;
  718.     Teleport[playerid] = false;
  719.     JustSpawned[playerid] = false;
  720.     CreateDebugInfo(playerid);
  721.     IsDebugging[playerid] = false;
  722.     return 1;
  723. }
  724. //------------------------------------------------------------------------------
  725. public OnPlayerSpawn(playerid)
  726. {
  727.     JustSpawned[playerid] = true;
  728.     return 1;
  729. }
  730. //------------------------------------------------------------------------------
  731. public OnPlayerDisconnect(playerid, reason)
  732. {
  733.     Allowed[playerid] = false;
  734.     Teleport[playerid] = false;
  735.     JustSpawned[playerid] = false;
  736.     DestroyDebugInfo(playerid);
  737.     IsDebugging[playerid] = false;
  738.     return 1;
  739. }
  740. //------------------------------------------------------------------------------
  741. public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
  742. {
  743.     new str[256];
  744.     if(Teleport[playerid] == true)
  745.     {
  746.         SetPlayerInterior(playerid, 0);
  747.         if(IsPlayerInAnyVehicle(playerid))
  748.         {
  749.             new VehID = GetPlayerVehicleID(playerid);
  750.             SetVehiclePos(VehID, fX, fY, GetPointZPos(fX, fY)+3);
  751.             PutPlayerInVehicle(playerid, VehID, 0);
  752.         }
  753.         else SetPlayerPos(playerid, fX, fY, GetPointZPos(fX, fY)+2);
  754.         format(str, sizeof(str), ""TAG" Teleported to "COL_WHITE"[X: %0.2f | Y: %0.2f | Z: %0.2f]", fX, fY, GetPointZPos(fX, fY));
  755.         SCM(playerid, -1, str);
  756.     }
  757.     return 1;
  758. }
  759. //------------------------------------------------------------------------------
  760. public OnPlayerUpdate(playerid)
  761. {
  762.     /* ** *** Part 1 *** ** */
  763.    
  764.     new Float:HP, HPstr[50];
  765.     GetPlayerHealth(playerid, HP);
  766.     format(HPstr, sizeof(HPstr), "Health: %.0f%%", HP);
  767.     TextDrawSetString(Textdraw7[playerid], HPstr);
  768.    
  769.     new Float:AP, APstr[50];
  770.     GetPlayerArmour(playerid, AP);
  771.     format(APstr, sizeof(APstr), "Armour: %.0f%%", AP);
  772.     TextDrawSetString(Textdraw8[playerid], APstr);
  773.    
  774.     new Weap, WeapN[50], Wstr[100];
  775.     Weap = GetPlayerWeapon(playerid);
  776.     if(Weap != 0)
  777.     {
  778.         GetWeaponName(Weap, WeapN, sizeof(WeapN));
  779.         format(Wstr, sizeof(Wstr), "Weapon: %d/%s", Weap, WeapN);
  780.         TextDrawSetString(Textdraw9[playerid], Wstr);
  781.     }
  782.     if(Weap == 0) TextDrawSetString(Textdraw9[playerid], "Weapon: 0/Fist");
  783.    
  784.     new SKstr[50];
  785.     format(SKstr, sizeof(SKstr), "Skin: %d", GetPlayerSkin(playerid));
  786.     TextDrawSetString(Textdraw10[playerid], SKstr);
  787.    
  788.     /* ** *** Part 2 *** ** */
  789.    
  790.     new Float:X, Float:Y, Float:Z, Float:An;
  791.     new Xstr[50], Ystr[50], Zstr[50], Anstr[50];
  792.     GetPlayerPos(playerid, X, Y, Z);
  793.     GetPlayerFacingAngle(playerid, An);
  794.     format(Xstr, sizeof(Xstr), "Position X: %.3f", X);
  795.     format(Ystr, sizeof(Ystr), "Position Y: %.3f", Y);
  796.     format(Zstr, sizeof(Zstr), "Position Z: %.3f", Z);
  797.     format(Anstr, sizeof(Anstr), "Facing Angle: %.3f", An);
  798.     TextDrawSetString(Textdraw12[playerid], Xstr);
  799.     TextDrawSetString(Textdraw13[playerid], Ystr);
  800.     TextDrawSetString(Textdraw14[playerid], Zstr);
  801.     TextDrawSetString(Textdraw15[playerid], Anstr);
  802.    
  803.     /* ** *** Part 3 *** ** */
  804.    
  805.     if(GetPlayerAnimationIndex(playerid))
  806.     {
  807.         new ALib[32], AName[32], ALstr[50], ANstr[50], AXstr[50];
  808.         GetAnimationName(GetPlayerAnimationIndex(playerid), ALib, sizeof(ALib), AName, sizeof(AName));
  809.         format(ALstr, sizeof(ALstr), "A-Lib: %s", ALib);
  810.         format(ANstr, sizeof(ANstr), "A-Name: %s", AName);
  811.         format(AXstr, sizeof(AXstr), "A-Index: %d", GetPlayerAnimationIndex(playerid));
  812.         TextDrawSetString(Textdraw17[playerid], ALstr);
  813.         TextDrawSetString(Textdraw18[playerid], ANstr);
  814.         TextDrawSetString(Textdraw19[playerid], AXstr);
  815.     }
  816.     else
  817.     {
  818.         TextDrawSetString(Textdraw17[playerid], "A-Lib: None");
  819.         TextDrawSetString(Textdraw18[playerid], "A-Name: None");
  820.         TextDrawSetString(Textdraw19[playerid], "A-Index: None");
  821.     }
  822.    
  823.     new SAstr[50];
  824.     format(SAstr, sizeof(SAstr), "Special Action: %d", GetPlayerSpecialAction(playerid));
  825.     TextDrawSetString(Textdraw20[playerid], SAstr);
  826.    
  827.     /* ** *** Part 4 *** ** */
  828.    
  829.     new Name[MAX_PLAYER_NAME], Nstr[50];
  830.     GetPlayerName(playerid, Name, sizeof(Name));
  831.     format(Nstr, sizeof(Nstr), "Name: %s", Name);
  832.     TextDrawSetString(Textdraw22[playerid], Nstr);
  833.    
  834.     new IDstr[50];
  835.     format(IDstr, sizeof(IDstr), "ID: %d", playerid);
  836.     TextDrawSetString(Textdraw23[playerid], IDstr);
  837.    
  838.     new Pstr[144];
  839.     format(Pstr, sizeof(Pstr), "Packet Loss: %.2f%%", NetStats_PacketLossPercent(playerid));
  840.     TextDrawSetString(Textdraw24[playerid], Pstr);
  841.    
  842.     /* ** *** Part 5 *** ** */
  843.    
  844.     new Year, Month, Day, DTstr[50];
  845.     getdate(Year, Month, Day);
  846.     format(DTstr, sizeof(DTstr), "Date: %02d/%02d/%02d", Day, Month, Year);
  847.     TextDrawSetString(Textdraw26[playerid], DTstr);
  848.    
  849.     new Hour, Minute, Second, TMstr[50];
  850.     gettime(Hour, Minute, Second);
  851.     format(TMstr, sizeof(TMstr), "Time: %02d:%02d:%02d", Hour, Minute, Second);
  852.     TextDrawSetString(Textdraw27[playerid], TMstr);
  853.    
  854.     /* ** *** Part 6 *** ** */
  855.    
  856.     new VWstr[50];
  857.     format(VWstr, sizeof(VWstr), "Virtual World: %d", GetPlayerVirtualWorld(playerid));
  858.     TextDrawSetString(Textdraw29[playerid], VWstr);
  859.    
  860.     new Istr[50];
  861.     format(Istr, sizeof(Istr), "Interior: %d", GetPlayerInterior(playerid));
  862.     TextDrawSetString(Textdraw30[playerid], Istr);
  863.    
  864.     /* ** *** Part 7 *** ** */
  865.    
  866.     if(IsPlayerInAnyVehicle(playerid))
  867.     {
  868.         new vID, vMod, Float:vHP, vIDstr[50], vModstr[50], vHPstr[50];
  869.         vID = GetPlayerVehicleID(playerid);
  870.         vMod = GetVehicleModel(vID);
  871.         GetVehicleHealth(vID, vHP);
  872.         format(vIDstr, sizeof(vIDstr), "Vehicle ID: %d", vID);
  873.         format(vModstr, sizeof(vModstr), "Vehicle Model: %d", vMod);
  874.         format(vHPstr, sizeof(vHPstr), "Vehicle Health: %.2f", vHP);
  875.         TextDrawSetString(Textdraw32[playerid], vIDstr);
  876.         TextDrawSetString(Textdraw33[playerid], vModstr);
  877.         TextDrawSetString(Textdraw34[playerid], vHPstr);
  878.     }
  879.     else
  880.     {
  881.         TextDrawSetString(Textdraw32[playerid], "Vehicle ID: None");
  882.         TextDrawSetString(Textdraw33[playerid], "Vehicle Model: None");
  883.         TextDrawSetString(Textdraw34[playerid], "Vehicle Health: None");
  884.     }
  885.     return 1;
  886. }
  887. //------------------------------------------------------------------------------
  888. public OnPlayerExitVehicle(playerid, vehicleid)
  889. {
  890.     if(Veh == vehicleid && Veh != INVALID_VEHICLE_ID)
  891.     {
  892.         DestroyVehicle(Veh);
  893.     }
  894.     return 1;
  895. }
  896. //================================== [Dialogs] =================================
  897. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  898. {
  899.     new ostr[250];
  900.     strcat(ostr, ""COL_GREEN"Spawn/Change\n"COL_ORANGE"Useful Tools\n"COL_RED"Settings");
  901.     new sstr[250];
  902.     strcat(sstr, ""COL_WHITE"Spawn Weapon\n"COL_WHITE"Spawn Vehicle\n"COL_WHITE"Change Skin\n"COL_GREY"Spawn Jetpack");
  903.     new tstr[250];
  904.     strcat(tstr, ""COL_WHITE"Teleport\n"COL_GREY"Slap\n"COL_GREY"Freeze/Unfreeze\n"COL_GREY"Disarm");
  905.     new setstr[250];
  906.     strcat(setstr, ""COL_WHITE"Edit Permissions\n"COL_GREY"Toggle Debug Info");
  907.     new permstr[256];
  908.     strcat(permstr, ""COL_WHITE"Input Player ID/Name below:\n"COL_GREEN"- If the player cannot access /dmode, He will be able to use it.\n"COL_RED"- If the player can access /dmode, He will not be able to use it anymore.\n"COL_YELLOW"*Rcon Admins exculuded*");
  909.     new telestr[256];
  910.     strcat(telestr, ""COL_GREY"To Map Marker\n"COL_WHITE"To Interior\n"COL_WHITE"X,Y,Z Coordinate");
  911.    
  912.     switch(dialogid)
  913.     {
  914.         case DIALOG_PANEL:
  915.         {
  916.             if(response) //Select
  917.             {
  918.                 switch(listitem)
  919.                 {
  920.                     case 0: ShowPlayerDialog(playerid, DIALOG_SPAWN, DIALOG_STYLE_LIST, ""COL_GREEN"Spawn/Change", sstr, "Select", "Back"); //Spawn Menu
  921.                     case 1: ShowPlayerDialog(playerid, DIALOG_TOOLS, DIALOG_STYLE_LIST, ""COL_ORANGE"Useful Tools", tstr, "Select", "Back"); //Useful Tools
  922.                     case 2: ShowPlayerDialog(playerid, DIALOG_SETTINGS, DIALOG_STYLE_LIST, ""COL_RED"Settings", setstr, "Select", "Back"); //Settings
  923.                 }
  924.                 return 1;
  925.             }
  926.             else return 0; //Close
  927.         }
  928. //      ------------------------------------------------------------------------
  929.         case DIALOG_SPAWN:
  930.         {
  931.             if(response) //Select
  932.             {
  933.                 switch(listitem)
  934.                 {
  935.                     case 0: ShowPlayerDialog(playerid, DIALOG_WEAPON, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Weapon", ""COL_WHITE"Input the Weapon ID below:\n"COL_YELLOW"*Min: 1 || Max: 46*", "Continue", "Back"); //Weapon
  936.                     case 1: //Vehicle
  937.                     {
  938.                         if(IsPlayerInAnyVehicle(playerid))
  939.                         {
  940.                             SCM(playerid, -1, ""TAG" You are already in a vehicle");
  941.                             ShowPlayerDialog(playerid, DIALOG_SPAWN, DIALOG_STYLE_LIST, ""COL_GREEN"Spawn/Change", sstr, "Select", "Back");
  942.                             return 1;
  943.                         }
  944.                         ShowPlayerDialog(playerid, DIALOG_SVEHICLE, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Vehicle", ""COL_WHITE"Input the Vehicle Model below:\n"COL_YELLOW"*Min: 400 || Max: 611*", "Continue", "Back");
  945.  
  946.                     }
  947.                     case 2: ShowPlayerDialog(playerid, DIALOG_SKIN, DIALOG_STYLE_INPUT, ""COL_WHITE"Change Skin", ""COL_WHITE"Input the Skin ID below:\n"COL_YELLOW"*Min: 0 || Max: 311*", "Change", "Back"); //Skin
  948.                     case 3: //Jetpack
  949.                     {
  950.                         SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
  951.                         PlayerPlaySound(playerid, 1133, 0, 0, 0);
  952.                         SCM(playerid, -1, ""TAG" Spawned a "COL_WHITE"Jetpack");
  953.                     }
  954.                 }
  955.             }
  956.             else ShowPlayerDialog(playerid, DIALOG_PANEL, DIALOG_STYLE_LIST, ""COL_DRED"Debug Mode "COL_WHITE"|| "COL_GREY"Access Panel", ostr, "Select", "Close"); //Back
  957.         }
  958. //      ------------------------------------------------------------------------
  959.         case DIALOG_SVEHICLE:
  960.         {
  961.             if(response) //Continue
  962.             {
  963.                 new vehiclem;
  964.                 if(sscanf(inputtext, "d", vehiclem)) return ShowPlayerDialog(playerid, DIALOG_SVEHICLE, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Vehicle", ""COL_WHITE"Input the Vehicle Model below:\n"COL_YELLOW"*Min: 400 || Max: 611*", "Continue", "Back");
  965.                 if(vehiclem > 611 || vehiclem < 400) return ShowPlayerDialog(playerid, DIALOG_SVEHICLE, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Vehicle", ""COL_WHITE"Input the Vehicle Model below:\n"COL_YELLOW"*Min: 400 || Max: 611*", "Continue", "Back");
  966.                 SetPVarInt(playerid, "DVehicleModel", vehiclem);
  967.                 ShowPlayerDialog(playerid, DIALOG_VCOLOR1, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Vehicle", ""COL_WHITE"Input the Vehicle Color 1 below:\n"COL_YELLOW"*Min: 0 || Max: 252*", "Continue", "Back");
  968.             }
  969.             else ShowPlayerDialog(playerid, DIALOG_SPAWN, DIALOG_STYLE_LIST, ""COL_GREEN"Spawn/Change", sstr, "Select", "Back"); //Back
  970.         }
  971. //      ------------------------------------------------------------------------
  972.         case DIALOG_VCOLOR1:
  973.         {
  974.             if(response) //Continue
  975.             {
  976.                 new vcolor1;
  977.                 if(sscanf(inputtext, "d", vcolor1)) return ShowPlayerDialog(playerid, DIALOG_VCOLOR1, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Vehicle", ""COL_WHITE"Input the Vehicle Color 1 below:\n"COL_YELLOW"*Min: 0 || Max: 252*", "Continue", "Back");
  978.                 if(vcolor1 > 252 || vcolor1 < 0) return ShowPlayerDialog(playerid, DIALOG_VCOLOR1, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Vehicle", ""COL_WHITE"Input the Vehicle Color 1 below:\n"COL_YELLOW"*Min: 0 || Max: 252*", "Continue", "Back");
  979.                 SetPVarInt(playerid, "DVehicleColor1", vcolor1);
  980.                 ShowPlayerDialog(playerid, DIALOG_VCOLOR2, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Vehicle", ""COL_WHITE"Input the Vehicle Color 2 below:\n"COL_YELLOW"*Min: 0 || Max: 252*", "Spawn", "Back");
  981.             }
  982.             else ShowPlayerDialog(playerid, DIALOG_SVEHICLE, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Vehicle", ""COL_WHITE"Input the Vehicle Model below:\n"COL_YELLOW"*Min: 400 || Max: 611*", "Continue", "Back"); //Back
  983.         }
  984. //      ------------------------------------------------------------------------
  985.         case DIALOG_VCOLOR2:
  986.         {
  987.             if(response) //Continue
  988.             {
  989.                 new vcolor2;
  990.                 if(sscanf(inputtext, "d", vcolor2)) return ShowPlayerDialog(playerid, DIALOG_VCOLOR2, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Vehicle", ""COL_WHITE"Input the Vehicle Color 2 below:\n"COL_YELLOW"*Min: 0 || Max: 252*", "Spawn", "Back");
  991.                 if(vcolor2 > 252 || vcolor2 < 0) return ShowPlayerDialog(playerid, DIALOG_VCOLOR2, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Vehicle", ""COL_WHITE"Input the Vehicle Color 2 below:\n"COL_YELLOW"*Min: 0 || Max: 252*", "Spawn", "Back");
  992.                 new string[128], Float:X, Float:Y, Float:Z, Float:FA;
  993.                 GetPlayerPos(playerid, X, Y, Z);
  994.                 GetPlayerFacingAngle(playerid, FA);
  995.                 Veh = CreateVehicle(GetPVarInt(playerid, "DVehicleModel"), X, Y, Z, FA, GetPVarInt(playerid, "DVehicleColor1"), vcolor2, 0);
  996.                 PutPlayerInVehicle(playerid, Veh, 0);
  997.                 AddVehicleComponent(Veh, 1010);
  998.                 PlayerPlaySound(playerid, 1133, 0, 0, 0);
  999.                 format(string, sizeof(string), ""TAG" Spawned a Vehicle "COL_WHITE"[Model: %d | Color1: %d | Color2: %d]", GetPVarInt(playerid, "DVehicleModel"), GetPVarInt(playerid, "DVehicleColor1"), vcolor2);
  1000.                 SCM(playerid, -1, string);
  1001.             }
  1002.             else ShowPlayerDialog(playerid, DIALOG_VCOLOR1, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Vehicle", ""COL_WHITE"Input the Vehicle Color 1 below:\n"COL_YELLOW"*Min: 0 || Max: 252*", "Continue", "Back"); //Back
  1003.         }
  1004. //      ------------------------------------------------------------------------
  1005.         case DIALOG_WEAPON:
  1006.         {
  1007.             if(response) //Continue
  1008.             {
  1009.                 new weap;
  1010.                 if(sscanf(inputtext, "d", weap)) return ShowPlayerDialog(playerid, DIALOG_WEAPON, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Weapon", ""COL_WHITE"Input the Weapon ID below:\n"COL_YELLOW"*Min: 1 || Max: 46*", "Continue", "Back");
  1011.                 if(weap > 46 || weap < 1) return ShowPlayerDialog(playerid, DIALOG_WEAPON, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Weapon", ""COL_WHITE"Input the Weapon ID below:\n"COL_YELLOW"*Min: 1 || Max: 46*", "Continue", "Back");
  1012.                 SetPVarInt(playerid, "DWeaponID", strval(inputtext));
  1013.                 ShowPlayerDialog(playerid, DIALOG_AMMO, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Weapon", ""COL_WHITE"Input the Amount Of Ammo below:\n"COL_YELLOW"*Put 99999 for infinite amount*", "Spawn", "Back");
  1014.             }
  1015.             else ShowPlayerDialog(playerid, DIALOG_SPAWN, DIALOG_STYLE_LIST, ""COL_GREEN"Spawn/Change", sstr, "Select", "Back"); //Back
  1016.         }
  1017. //      ------------------------------------------------------------------------
  1018.         case DIALOG_AMMO:
  1019.         {
  1020.             if(response) //Continue
  1021.             {
  1022.                 new ammo;
  1023.                 if(sscanf(inputtext, "d", ammo)) return ShowPlayerDialog(playerid, DIALOG_AMMO, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Weapon", ""COL_WHITE"Input the Amount Of Ammo below:\n"COL_YELLOW"*Put 99999 for infinite amount*", "Spawn", "Back");
  1024.                 if(ammo > 99999 || ammo < 0) return ShowPlayerDialog(playerid, DIALOG_AMMO, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Weapon", ""COL_WHITE"Input the Amount Of Ammo below:\n"COL_YELLOW"*Put 99999 for infinite amount*", "Spawn", "Back");
  1025.                 GivePlayerWeapon(playerid, GetPVarInt(playerid, "DWeaponID"), ammo);
  1026.                 PlayerPlaySound(playerid, 1054, 0, 0, 0);
  1027.                 new string[128], wname[50];
  1028.                 GetWeaponName(GetPVarInt(playerid, "DWeaponID"), wname, sizeof(wname));
  1029.                 format(string, sizeof(string), ""TAG" Spawned a Weapon "COL_WHITE"[ID: %d | Name: %s | Ammo: %d]", GetPVarInt(playerid, "DWeaponID"), wname, ammo);
  1030.                 SCM(playerid, -1, string);
  1031.             }
  1032.             else ShowPlayerDialog(playerid, DIALOG_WEAPON, DIALOG_STYLE_INPUT, ""COL_WHITE"Spawn Weapon", ""COL_WHITE"Input the Weapon ID below:\n"COL_YELLOW"*Min: 1 || Max: 46*", "Continue", "Back"); //Back
  1033.         }
  1034. //      ------------------------------------------------------------------------
  1035.         case DIALOG_SKIN:
  1036.         {
  1037.             if(response) //Continue
  1038.             {
  1039.                 new skinid;
  1040.                 if(sscanf(inputtext, "d", skinid)) return ShowPlayerDialog(playerid, DIALOG_SKIN, DIALOG_STYLE_INPUT, ""COL_WHITE"Change Skin", ""COL_WHITE"Input the Skin ID below:\n"COL_YELLOW"*Min: 0 || Max: 311*", "Change", "Back");
  1041.                 if(skinid > 311 || skinid < 0) return ShowPlayerDialog(playerid, DIALOG_SKIN, DIALOG_STYLE_INPUT, ""COL_WHITE"Change Skin", ""COL_WHITE"Input the Skin ID below:\n"COL_YELLOW"*Min: 0 || Max: 311*", "Change", "Back");
  1042.                 SetPlayerSkin(playerid, skinid);
  1043.                 PlayerPlaySound(playerid, 1054, 0, 0, 0);
  1044.                 new string[128];
  1045.                 format(string, sizeof(string), ""TAG" Changed your Skin "COL_WHITE"[ID: %d]", skinid);
  1046.                 SCM(playerid, -1, string);
  1047.             }
  1048.             else ShowPlayerDialog(playerid, DIALOG_SPAWN, DIALOG_STYLE_LIST, ""COL_GREEN"Spawn/Change", sstr, "Select", "Back"); //Back
  1049.         }
  1050. //      ------------------------------------------------------------------------
  1051.         case DIALOG_TOOLS:
  1052.         {
  1053.             if(response) //Select
  1054.             {
  1055.                 switch(listitem)
  1056.                 {
  1057.                     case 0: //Teleport
  1058.                     {
  1059.                         ShowPlayerDialog(playerid, DIALOG_TELE, DIALOG_STYLE_LIST, ""COL_WHITE"Teleport", telestr, "Select", "Back");
  1060.                     }
  1061.                     case 1: //Slap
  1062.                     {
  1063.                         new Float:Pos[3];
  1064.                         GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  1065.                         SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]+10);
  1066.                         PlayerPlaySound(playerid, 1130, Pos[0], Pos[1], Pos[2]+10);
  1067.                         SCM(playerid, -1, ""TAG" You have been "COL_WHITE"Slapped");
  1068.                         ShowPlayerDialog(playerid, DIALOG_TOOLS, DIALOG_STYLE_LIST, ""COL_ORANGE"Useful Tools", tstr, "Select", "Back");
  1069.                     }
  1070.                     case 2: //Freeze/Unfreeze
  1071.                     {
  1072.                         if(Frozen[playerid] == false)
  1073.                         {
  1074.                             TogglePlayerControllable(playerid, false);
  1075.                             Frozen[playerid] = true;
  1076.                             PlayerPlaySound(playerid, 1138, 0, 0, 0);
  1077.                             SCM(playerid, -1, ""TAG" You have been "COL_WHITE"Frozen");
  1078.                             ShowPlayerDialog(playerid, DIALOG_TOOLS, DIALOG_STYLE_LIST, ""COL_ORANGE"Useful Tools", tstr, "Select", "Back");
  1079.                             return 1;
  1080.                         }
  1081.                         if(Frozen[playerid] == true)
  1082.                         {
  1083.                             TogglePlayerControllable(playerid, true);
  1084.                             Frozen[playerid] = false;
  1085.                             PlayerPlaySound(playerid, 1139, 0, 0, 0);
  1086.                             SCM(playerid, -1, ""TAG" You have been "COL_WHITE"Unfrozen");
  1087.                             ShowPlayerDialog(playerid, DIALOG_TOOLS, DIALOG_STYLE_LIST, ""COL_ORANGE"Useful Tools", tstr, "Select", "Back");
  1088.                             return 1;
  1089.                         }
  1090.                         return 1;
  1091.                     }
  1092.                     case 3: //Disarm
  1093.                     {
  1094.                         ResetPlayerWeapons(playerid);
  1095.                         PlayerPlaySound(playerid, 1083, 0, 0, 0);
  1096.                         SCM(playerid, -1, ""TAG" You have been "COL_WHITE"Disarmed");
  1097.                         ShowPlayerDialog(playerid, DIALOG_TOOLS, DIALOG_STYLE_LIST, ""COL_ORANGE"Useful Tools", tstr, "Select", "Back");
  1098.                     }
  1099.                 }
  1100.             }
  1101.             else ShowPlayerDialog(playerid, DIALOG_PANEL, DIALOG_STYLE_LIST, ""COL_DRED"Debug Mode "COL_WHITE"|| "COL_GREY"Access Panel", ostr, "Select", "Close"); //Back
  1102.         }
  1103. //      ------------------------------------------------------------------------
  1104.         case DIALOG_SETTINGS:
  1105.         {
  1106.             if(response) //Select
  1107.             {
  1108.                 switch(listitem)
  1109.                 {
  1110.                     case 0: //Edit Permissions
  1111.                     {
  1112.                         if(!IsPlayerAdmin(playerid))
  1113.                         {
  1114.                             SCM(playerid, -1, ""TAG" Only "COL_WHITE"Rcon Admins "COL_BEGE"allowed to access this option.");
  1115.                             ShowPlayerDialog(playerid, DIALOG_PANEL, DIALOG_STYLE_LIST, ""COL_DRED"Debug Mode "COL_WHITE"|| "COL_GREY"Access Panel", ostr, "Select", "Close");
  1116.                             return 1;
  1117.                         }
  1118.                         ShowPlayerDialog(playerid, DIALOG_PERM, DIALOG_STYLE_INPUT, ""COL_WHITE"Edit Permissions", permstr, "Edit", "Back");
  1119.                     }
  1120.                     case 1: //Toggle Debug Info
  1121.                     {
  1122.                         if(IsUsingDebugInfo[playerid] == false)
  1123.                         {
  1124.                             ShowDebugInfo(playerid);
  1125.                             SCM(playerid, -1, ""TAG" Debug Info: "COL_GREEN"ON");
  1126.                             ShowPlayerDialog(playerid, DIALOG_SETTINGS, DIALOG_STYLE_LIST, ""COL_RED"Settings", setstr, "Select", "Back");
  1127.                             return 1;
  1128.                         }
  1129.                         if(IsUsingDebugInfo[playerid] == true)
  1130.                         {
  1131.                             HideDebugInfo(playerid);
  1132.                             SCM(playerid, -1, ""TAG" Debug Info: "COL_RED"OFF");
  1133.                             ShowPlayerDialog(playerid, DIALOG_SETTINGS, DIALOG_STYLE_LIST, ""COL_RED"Settings", setstr, "Select", "Back");
  1134.                             return 1;
  1135.                         }
  1136.                     }
  1137.                 }
  1138.             }
  1139.             else ShowPlayerDialog(playerid, DIALOG_PANEL, DIALOG_STYLE_LIST, ""COL_DRED"Debug Mode "COL_WHITE"|| "COL_GREY"Access Panel", ostr, "Select", "Close"); //Back
  1140.         }
  1141. //      ------------------------------------------------------------------------
  1142.         case DIALOG_PERM:
  1143.         {
  1144.             if(response) //Select
  1145.             {
  1146.                 new targetid, pName[MAX_PLAYER_NAME];
  1147.                 GetPlayerName(playerid, pName, sizeof(pName));
  1148.                 if(sscanf(inputtext, "u", targetid)) return ShowPlayerDialog(playerid, DIALOG_PERM, DIALOG_STYLE_INPUT, ""COL_WHITE"Edit Permissions", permstr, "Edit", "Back");
  1149.                 if(!IsPlayerConnected(targetid))
  1150.                 {
  1151.                     SCM(playerid, -1, ""TAG" Invalid "COL_WHITE"Player ID/Name");
  1152.                     ShowPlayerDialog(playerid, DIALOG_PERM, DIALOG_STYLE_INPUT, ""COL_WHITE"Edit Permissions", permstr, "Edit", "Back");
  1153.                     return 1;
  1154.                 }
  1155.                 if(IsPlayerAdmin(targetid)) return ShowPlayerDialog(playerid, DIALOG_PERM, DIALOG_STYLE_INPUT, ""COL_WHITE"Edit Permissions", permstr, "Edit", "Back");
  1156.                 if(Allowed[targetid] == false && !IsPlayerAdmin(targetid))
  1157.                 {
  1158.                     Allowed[strval(inputtext)] = true;
  1159.                     SCM(strval(inputtext), -1, ""TAG" You can now use the "COL_DRED"Debug Mode"COL_BEGE", Type '"COL_WHITE"/dmode"COL_BEGE"' to start");
  1160.                     new string[128];
  1161.                     format(string, sizeof(string), ""TAG" Player "COL_WHITE"%s[%d] "COL_BEGE"can use the "COL_DRED"Debug Mode "COL_BEGE"now", pName, targetid);
  1162.                     SCM(playerid, -1, string);
  1163.                     ShowPlayerDialog(playerid, DIALOG_PERM, DIALOG_STYLE_INPUT, ""COL_WHITE"Edit Permissions", permstr, "Edit", "Back");
  1164.                     return 1;
  1165.                 }
  1166.                 if(Allowed[targetid] == true && !IsPlayerAdmin(targetid))
  1167.                 {
  1168.                     Allowed[strval(inputtext)] = false;
  1169.                     Teleport[strval(inputtext)] = false;
  1170.                     HideDebugInfo(strval(inputtext));
  1171.                     HideDebugBar(strval(inputtext));
  1172.                     SCM(targetid, -1, ""TAG" Debug Mode: "COL_RED"Disabled");
  1173.                     SCM(targetid, -1, ""TAG" You cannot use the "COL_DRED"Debug Mode "COL_BEGE"anymore");
  1174.                     new string[128];
  1175.                     format(string, sizeof(string), ""TAG" Player "COL_WHITE"%s[%d] "COL_BEGE"cannot use the "COL_DRED"Debug Mode "COL_BEGE"anymore", pName, targetid);
  1176.                     SCM(playerid, -1, string);
  1177.                     ShowPlayerDialog(playerid, DIALOG_PERM, DIALOG_STYLE_INPUT, ""COL_WHITE"Edit Permissions", permstr, "Edit", "Back");
  1178.                     return 1;
  1179.                 }
  1180.             }
  1181.             else ShowPlayerDialog(playerid, DIALOG_SETTINGS, DIALOG_STYLE_LIST, ""COL_RED"Settings", setstr, "Select", "Back"); //Back
  1182.         }
  1183. //      ------------------------------------------------------------------------
  1184.         case DIALOG_TELE:
  1185.         {
  1186.             if(response) //Select
  1187.             {
  1188.                 switch(listitem)
  1189.                 {
  1190.                     case 0: //To Map Marker
  1191.                     {
  1192.                         if(Teleport[playerid] == false)
  1193.                         {
  1194.                             Teleport[playerid] = true;
  1195.                             ShowPlayerDialog(playerid, DIALOG_CONFIRMTELE, DIALOG_STYLE_MSGBOX, ""COL_WHITE"Teleport", ""COL_GREEN"You can now teleport to the marker.\n"COL_YELLOW"Press ESC -> Map -> Right Click Anywhere On The Map", "Ok", "");
  1196.                         }
  1197.                         else
  1198.                         {
  1199.                             Teleport[playerid] = false;
  1200.                             ShowPlayerDialog(playerid, DIALOG_CONFIRMTELE, DIALOG_STYLE_MSGBOX, ""COL_WHITE"Teleport", ""COL_RED"You can no longer teleport using Map Marker", "Ok", "");
  1201.                         }
  1202.                     }
  1203.                     case 1: ShowInteriorDialog(playerid); //To Interior
  1204.                     case 2: ShowPlayerDialog(playerid, DIALOG_AXIS, DIALOG_STYLE_INPUT, ""COL_WHITE"X,Y,Z Coodinate", ""COL_YELLOW"Input X,Y,Z Position Split them with a Comma ','", "Teleport", "Back"); //X,Y,Z Coordinate
  1205.                 }
  1206.             }
  1207.             else ShowPlayerDialog(playerid, DIALOG_TOOLS, DIALOG_STYLE_LIST, ""COL_ORANGE"Useful Tools", tstr, "Select", "Back"); //Back
  1208.         }
  1209. //      ------------------------------------------------------------------------
  1210.         case DIALOG_AXIS:
  1211.         {
  1212.             if(response) //Teleport
  1213.             {
  1214.                 new Float:X, Float:Y, Float:Z, str[256];
  1215.                 if(!sscanf(inputtext, "p<,>fff", X, Y, Z))
  1216.                 {
  1217.                     SetPlayerInterior(playerid, 0);
  1218.                     if(IsPlayerInAnyVehicle(playerid))
  1219.                     {
  1220.                         new v = GetPlayerVehicleID(playerid);
  1221.                         SetVehiclePos(v, X, Y, Z);
  1222.                         SetPlayerPos(playerid, X, Y, Z);
  1223.                         PutPlayerInVehicle(playerid, v, 0);
  1224.                         format(str, sizeof(str), ""TAG" Teleported to "COL_WHITE"[X: %0.2f | Y: %0.2f | Z: %0.2f]", X, Y, Z);
  1225.                         SCM(playerid, -1, str);
  1226.                     }
  1227.                     else
  1228.                     {
  1229.                         SetPlayerPos(playerid, X, Y, Z);
  1230.                         format(str, sizeof(str), ""TAG" Teleported to "COL_WHITE"[X: %0.2f | Y: %0.2f | Z: %0.2f]", X, Y, Z);
  1231.                         SCM(playerid, -1, str);
  1232.                     }
  1233.                 }
  1234.                 else ShowPlayerDialog(playerid, DIALOG_AXIS, DIALOG_STYLE_INPUT, ""COL_WHITE"X,Y,Z Coodinate", ""COL_YELLOW"Input X,Y,Z Position Split them with a Comma ','", "Teleport", "Back");
  1235.             }
  1236.             else ShowPlayerDialog(playerid, DIALOG_TELE, DIALOG_STYLE_LIST, ""COL_WHITE"Teleport", telestr, "Select", "Back");
  1237.         }
  1238.        
  1239. //      ------------------------------------------------------------------------
  1240.         case DIALOG_INTER:
  1241.         {
  1242.             if(response) //Teleport
  1243.             {
  1244.                 new arrayid = listitem, string[128];
  1245.                 SetPlayerPos(playerid, InteriorDialogData[arrayid][0], InteriorDialogData[arrayid][1], InteriorDialogData[arrayid][2]);
  1246.                 SetPlayerInterior(playerid, InteriorDialogInteriors[arrayid][0]);
  1247.                 SetPlayerFacingAngle(playerid, InteriorDialogData[arrayid][3]);
  1248.                 format(string, sizeof(string), ""TAG" Teleported to "COL_WHITE"[%s]", InteriorDialogNames[arrayid][0]);
  1249.                 SCM(playerid, -1, string);
  1250.             }
  1251.             else ShowPlayerDialog(playerid, DIALOG_TELE, DIALOG_STYLE_LIST, ""COL_WHITE"Teleport", telestr, "Select", "Back"); //Back
  1252.         }
  1253.     }
  1254.     return 0;
  1255. }
  1256. //------------------------------------------------------------------------------
  1257. public OnRconLoginAttempt(ip[], password[], success)
  1258. {
  1259.     if(success)
  1260.     {
  1261.         SetTimer("Welcome", 300, false);
  1262.     }
  1263.     return 1;
  1264. }
  1265. //------------------------------------------------------------------------------
  1266. function Welcome(playerid)
  1267. {
  1268.     SendClientMessage(playerid, -1, ""TAG" You can use "COL_WHITE"/dmode "COL_BEGE"to toggle "COL_DRED"Debug Mode");
  1269.     return 1;
  1270. }
  1271. //================================= [Commands] =================================
  1272. CMD:dmode(playerid)
  1273. {
  1274.     if(JustSpawned[playerid] == false) return SCM(playerid, -1, ""TAG" You must be spawned before you can use "COL_DRED"Debug Mode");
  1275.     if(Allowed[playerid] == false && !IsPlayerAdmin(playerid)) return SCM(playerid, -1, ""TAG" You are not allowed to enter in "COL_DRED"Debug Mode");
  1276.     if(IsDebugging[playerid] == false)
  1277.     {
  1278.         ShowDebugBar(playerid);
  1279.         SCM(playerid, -1, ""TAG" Debug Mode: "COL_GREEN"Enabled");
  1280.         SCM(playerid, -1, ""TAG" Use '"COL_WHITE"/dpanel | /dp"COL_BEGE"' to open the "COL_GREY"Access Panel");
  1281.         return 1;
  1282.     }
  1283.     if(IsDebugging[playerid] == true)
  1284.     {
  1285.         HideDebugInfo(playerid);
  1286.         HideDebugBar(playerid);
  1287.         TogglePlayerControllable(playerid, true);
  1288.         Frozen[playerid] = false;
  1289.         Teleport[playerid] = false;
  1290.         SCM(playerid, -1, ""TAG" Debug Mode: "COL_RED"Disabled");
  1291.         return 1;
  1292.     }
  1293.     return 1;
  1294. }
  1295. //------------------------------------------------------------------------------
  1296. CMD:dpanel(playerid)
  1297. {
  1298.     if(IsDebugging[playerid] == false) return SCM(playerid, -1, ""TAG" You must enable Debug Mode first, '"COL_WHITE"/dmode"COL_BEGE"'");
  1299.     new ostr[250];
  1300.     strcat(ostr, ""COL_GREEN"Spawn/Change\n"COL_ORANGE"Useful Tools\n"COL_RED"Settings");
  1301.     ShowPlayerDialog(playerid, DIALOG_PANEL, DIALOG_STYLE_LIST, ""COL_DRED"Debug Mode "COL_WHITE"|| "COL_GREY"Access Panel", ostr, "Select", "Close");
  1302.     return 1;
  1303. }
  1304.  
  1305. CMD:dp(playerid) return cmd_dpanel(playerid);
  1306. //================================= [Stocks] ===================================
  1307. stock ShowDebugBar(playerid)
  1308. {
  1309.     TextDrawShowForPlayer(playerid, Textdraw0);
  1310.     TextDrawShowForPlayer(playerid, Textdraw1);
  1311.     IsDebugging[playerid] = true;
  1312.     return 1;
  1313. }
  1314. //------------------------------------------------------------------------------
  1315. stock HideDebugBar(playerid)
  1316. {
  1317.     TextDrawHideForPlayer(playerid, Textdraw0);
  1318.     TextDrawHideForPlayer(playerid, Textdraw1);
  1319.     IsDebugging[playerid] = false;
  1320.     return 1;
  1321. }
  1322. //------------------------------------------------------------------------------
  1323. stock CreateDebugInfo(playerid)
  1324. {
  1325.     Textdraw7[playerid] = TextDrawCreate(494.000000, 127.000000, "Health: 100%");
  1326.     TextDrawBackgroundColor(Textdraw7[playerid], 255);
  1327.     TextDrawFont(Textdraw7[playerid], 1);
  1328.     TextDrawLetterSize(Textdraw7[playerid], 0.280000, 1.099999);
  1329.     TextDrawColor(Textdraw7[playerid], -4652801);
  1330.     TextDrawSetOutline(Textdraw7[playerid], 1);
  1331.     TextDrawSetProportional(Textdraw7[playerid], 1);
  1332.  
  1333.     Textdraw8[playerid] = TextDrawCreate(494.000000, 138.000000, "Armour: 100%");
  1334.     TextDrawBackgroundColor(Textdraw8[playerid], 255);
  1335.     TextDrawFont(Textdraw8[playerid], 1);
  1336.     TextDrawLetterSize(Textdraw8[playerid], 0.280000, 1.099999);
  1337.     TextDrawColor(Textdraw8[playerid], -4652801);
  1338.     TextDrawSetOutline(Textdraw8[playerid], 1);
  1339.     TextDrawSetProportional(Textdraw8[playerid], 1);
  1340.  
  1341.     Textdraw9[playerid] = TextDrawCreate(494.000000, 150.000000, "Weapon: 39/Stachel Charge");
  1342.     TextDrawBackgroundColor(Textdraw9[playerid], 255);
  1343.     TextDrawFont(Textdraw9[playerid], 1);
  1344.     TextDrawLetterSize(Textdraw9[playerid], 0.280000, 1.099999);
  1345.     TextDrawColor(Textdraw9[playerid], -4652801);
  1346.     TextDrawSetOutline(Textdraw9[playerid], 1);
  1347.     TextDrawSetProportional(Textdraw9[playerid], 1);
  1348.  
  1349.     Textdraw10[playerid] = TextDrawCreate(494.000000, 162.000000, "Skin: 0");
  1350.     TextDrawBackgroundColor(Textdraw10[playerid], 255);
  1351.     TextDrawFont(Textdraw10[playerid], 1);
  1352.     TextDrawLetterSize(Textdraw10[playerid], 0.280000, 1.099999);
  1353.     TextDrawColor(Textdraw10[playerid], -4652801);
  1354.     TextDrawSetOutline(Textdraw10[playerid], 1);
  1355.     TextDrawSetProportional(Textdraw10[playerid], 1);
  1356.  
  1357.     Textdraw12[playerid] = TextDrawCreate(495.000000, 179.000000, "Position X: 00.000");
  1358.     TextDrawBackgroundColor(Textdraw12[playerid], 255);
  1359.     TextDrawFont(Textdraw12[playerid], 1);
  1360.     TextDrawLetterSize(Textdraw12[playerid], 0.280000, 1.099999);
  1361.     TextDrawColor(Textdraw12[playerid], 1270415615);
  1362.     TextDrawSetOutline(Textdraw12[playerid], 1);
  1363.     TextDrawSetProportional(Textdraw12[playerid], 1);
  1364.  
  1365.     Textdraw13[playerid] = TextDrawCreate(495.000000, 191.000000, "Position Y: 00.000");
  1366.     TextDrawBackgroundColor(Textdraw13[playerid], 255);
  1367.     TextDrawFont(Textdraw13[playerid], 1);
  1368.     TextDrawLetterSize(Textdraw13[playerid], 0.280000, 1.099999);
  1369.     TextDrawColor(Textdraw13[playerid], 1270415615);
  1370.     TextDrawSetOutline(Textdraw13[playerid], 1);
  1371.     TextDrawSetProportional(Textdraw13[playerid], 1);
  1372.  
  1373.     Textdraw14[playerid] = TextDrawCreate(495.000000, 202.000000, "Position Z: 00.000");
  1374.     TextDrawBackgroundColor(Textdraw14[playerid], 255);
  1375.     TextDrawFont(Textdraw14[playerid], 1);
  1376.     TextDrawLetterSize(Textdraw14[playerid], 0.280000, 1.099999);
  1377.     TextDrawColor(Textdraw14[playerid], 1270415615);
  1378.     TextDrawSetOutline(Textdraw14[playerid], 1);
  1379.     TextDrawSetProportional(Textdraw14[playerid], 1);
  1380.  
  1381.     Textdraw15[playerid] = TextDrawCreate(494.000000, 214.000000, "Facing Angle: 00.000");
  1382.     TextDrawBackgroundColor(Textdraw15[playerid], 255);
  1383.     TextDrawFont(Textdraw15[playerid], 1);
  1384.     TextDrawLetterSize(Textdraw15[playerid], 0.280000, 1.099999);
  1385.     TextDrawColor(Textdraw15[playerid], 1270415615);
  1386.     TextDrawSetOutline(Textdraw15[playerid], 1);
  1387.     TextDrawSetProportional(Textdraw15[playerid], 1);
  1388.  
  1389.     Textdraw17[playerid] = TextDrawCreate(493.000000, 232.000000, "A-Lib: CJanimations");
  1390.     TextDrawBackgroundColor(Textdraw17[playerid], 255);
  1391.     TextDrawFont(Textdraw17[playerid], 1);
  1392.     TextDrawLetterSize(Textdraw17[playerid], 0.280000, 1.099999);
  1393.     TextDrawColor(Textdraw17[playerid], -12189441);
  1394.     TextDrawSetOutline(Textdraw17[playerid], 1);
  1395.     TextDrawSetProportional(Textdraw17[playerid], 1);
  1396.  
  1397.     Textdraw18[playerid] = TextDrawCreate(493.000000, 244.000000, "A-Name: cj_running_anim_023");
  1398.     TextDrawBackgroundColor(Textdraw18[playerid], 255);
  1399.     TextDrawFont(Textdraw18[playerid], 1);
  1400.     TextDrawLetterSize(Textdraw18[playerid], 0.280000, 1.099999);
  1401.     TextDrawColor(Textdraw18[playerid], -12189441);
  1402.     TextDrawSetOutline(Textdraw18[playerid], 1);
  1403.     TextDrawSetProportional(Textdraw18[playerid], 1);
  1404.  
  1405.     Textdraw19[playerid] = TextDrawCreate(493.000000, 256.000000, "A-Index: 0");
  1406.     TextDrawBackgroundColor(Textdraw19[playerid], 255);
  1407.     TextDrawFont(Textdraw19[playerid], 1);
  1408.     TextDrawLetterSize(Textdraw19[playerid], 0.280000, 1.099999);
  1409.     TextDrawColor(Textdraw19[playerid], -12189441);
  1410.     TextDrawSetOutline(Textdraw19[playerid], 1);
  1411.     TextDrawSetProportional(Textdraw19[playerid], 1);
  1412.  
  1413.     Textdraw20[playerid] = TextDrawCreate(493.000000, 268.000000, "Special Action: 0");
  1414.     TextDrawBackgroundColor(Textdraw20[playerid], 255);
  1415.     TextDrawFont(Textdraw20[playerid], 1);
  1416.     TextDrawLetterSize(Textdraw20[playerid], 0.280000, 1.099999);
  1417.     TextDrawColor(Textdraw20[playerid], -12189441);
  1418.     TextDrawSetOutline(Textdraw20[playerid], 1);
  1419.     TextDrawSetProportional(Textdraw20[playerid], 1);
  1420.  
  1421.     Textdraw22[playerid] = TextDrawCreate(494.000000, 288.000000, "Name: FailerZ");
  1422.     TextDrawBackgroundColor(Textdraw22[playerid], 255);
  1423.     TextDrawFont(Textdraw22[playerid], 1);
  1424.     TextDrawLetterSize(Textdraw22[playerid], 0.280000, 1.099999);
  1425.     TextDrawColor(Textdraw22[playerid], 8912895);
  1426.     TextDrawSetOutline(Textdraw22[playerid], 1);
  1427.     TextDrawSetProportional(Textdraw22[playerid], 1);
  1428.  
  1429.     Textdraw23[playerid] = TextDrawCreate(494.000000, 300.000000, "ID: 0");
  1430.     TextDrawBackgroundColor(Textdraw23[playerid], 255);
  1431.     TextDrawFont(Textdraw23[playerid], 1);
  1432.     TextDrawLetterSize(Textdraw23[playerid], 0.280000, 1.099999);
  1433.     TextDrawColor(Textdraw23[playerid], 8912895);
  1434.     TextDrawSetOutline(Textdraw23[playerid], 1);
  1435.     TextDrawSetProportional(Textdraw23[playerid], 1);
  1436.  
  1437.     Textdraw24[playerid] = TextDrawCreate(494.000000, 313.000000, "Packetloss: 0%");
  1438.     TextDrawBackgroundColor(Textdraw24[playerid], 255);
  1439.     TextDrawFont(Textdraw24[playerid], 1);
  1440.     TextDrawLetterSize(Textdraw24[playerid], 0.280000, 1.099999);
  1441.     TextDrawColor(Textdraw24[playerid], 8912895);
  1442.     TextDrawSetOutline(Textdraw24[playerid], 1);
  1443.     TextDrawSetProportional(Textdraw24[playerid], 1);
  1444.  
  1445.     Textdraw26[playerid] = TextDrawCreate(494.000000, 332.000000, "Date: 2/25/2014");
  1446.     TextDrawBackgroundColor(Textdraw26[playerid], 255);
  1447.     TextDrawFont(Textdraw26[playerid], 1);
  1448.     TextDrawLetterSize(Textdraw26[playerid], 0.280000, 1.099999);
  1449.     TextDrawColor(Textdraw26[playerid], -1442775041);
  1450.     TextDrawSetOutline(Textdraw26[playerid], 1);
  1451.     TextDrawSetProportional(Textdraw26[playerid], 1);
  1452.  
  1453.     Textdraw27[playerid] = TextDrawCreate(494.000000, 344.000000, "Time: 11:00:00");
  1454.     TextDrawBackgroundColor(Textdraw27[playerid], 255);
  1455.     TextDrawFont(Textdraw27[playerid], 1);
  1456.     TextDrawLetterSize(Textdraw27[playerid], 0.280000, 1.099999);
  1457.     TextDrawColor(Textdraw27[playerid], -1442775041);
  1458.     TextDrawSetOutline(Textdraw27[playerid], 1);
  1459.     TextDrawSetProportional(Textdraw27[playerid], 1);
  1460.  
  1461.     Textdraw29[playerid] = TextDrawCreate(494.000000, 362.000000, "Virtul World: 0");
  1462.     TextDrawBackgroundColor(Textdraw29[playerid], 255);
  1463.     TextDrawFont(Textdraw29[playerid], 1);
  1464.     TextDrawLetterSize(Textdraw29[playerid], 0.280000, 1.099999);
  1465.     TextDrawColor(Textdraw29[playerid], -16727041);
  1466.     TextDrawSetOutline(Textdraw29[playerid], 1);
  1467.     TextDrawSetProportional(Textdraw29[playerid], 1);
  1468.  
  1469.     Textdraw30[playerid] = TextDrawCreate(494.000000, 373.000000, "Interior: 0");
  1470.     TextDrawBackgroundColor(Textdraw30[playerid], 255);
  1471.     TextDrawFont(Textdraw30[playerid], 1);
  1472.     TextDrawLetterSize(Textdraw30[playerid], 0.280000, 1.099999);
  1473.     TextDrawColor(Textdraw30[playerid], -16727041);
  1474.     TextDrawSetOutline(Textdraw30[playerid], 1);
  1475.     TextDrawSetProportional(Textdraw30[playerid], 1);
  1476.  
  1477.     Textdraw32[playerid] = TextDrawCreate(494.000000, 391.000000, "Vehicle ID: 0");
  1478.     TextDrawBackgroundColor(Textdraw32[playerid], 255);
  1479.     TextDrawFont(Textdraw32[playerid], 1);
  1480.     TextDrawLetterSize(Textdraw32[playerid], 0.280000, 1.099999);
  1481.     TextDrawColor(Textdraw32[playerid], 1852731135);
  1482.     TextDrawSetOutline(Textdraw32[playerid], 1);
  1483.     TextDrawSetProportional(Textdraw32[playerid], 1);
  1484.  
  1485.     Textdraw33[playerid] = TextDrawCreate(494.000000, 402.000000, "Vehicle Model: 0");
  1486.     TextDrawBackgroundColor(Textdraw33[playerid], 255);
  1487.     TextDrawFont(Textdraw33[playerid], 1);
  1488.     TextDrawLetterSize(Textdraw33[playerid], 0.280000, 1.099999);
  1489.     TextDrawColor(Textdraw33[playerid], 1852731135);
  1490.     TextDrawSetOutline(Textdraw33[playerid], 1);
  1491.     TextDrawSetProportional(Textdraw33[playerid], 1);
  1492.  
  1493.     Textdraw34[playerid] = TextDrawCreate(494.000000, 413.000000, "Vehicle Health: 0");
  1494.     TextDrawBackgroundColor(Textdraw34[playerid], 255);
  1495.     TextDrawFont(Textdraw34[playerid], 1);
  1496.     TextDrawLetterSize(Textdraw34[playerid], 0.280000, 1.099999);
  1497.     TextDrawColor(Textdraw34[playerid], 1852731135);
  1498.     TextDrawSetOutline(Textdraw34[playerid], 1);
  1499.     TextDrawSetProportional(Textdraw34[playerid], 1);
  1500.     return 1;
  1501. }
  1502. //------------------------------------------------------------------------------
  1503. stock DestroyDebugInfo(playerid)
  1504. {
  1505.     TextDrawDestroy(Textdraw7[playerid]);
  1506.     TextDrawDestroy(Textdraw8[playerid]);
  1507.     TextDrawDestroy(Textdraw9[playerid]);
  1508.     TextDrawDestroy(Textdraw10[playerid]);
  1509.     TextDrawDestroy(Textdraw12[playerid]);
  1510.     TextDrawDestroy(Textdraw13[playerid]);
  1511.     TextDrawDestroy(Textdraw14[playerid]);
  1512.     TextDrawDestroy(Textdraw15[playerid]);
  1513.     TextDrawDestroy(Textdraw17[playerid]);
  1514.     TextDrawDestroy(Textdraw18[playerid]);
  1515.     TextDrawDestroy(Textdraw19[playerid]);
  1516.     TextDrawDestroy(Textdraw20[playerid]);
  1517.     TextDrawDestroy(Textdraw22[playerid]);
  1518.     TextDrawDestroy(Textdraw23[playerid]);
  1519.     TextDrawDestroy(Textdraw24[playerid]);
  1520.     TextDrawDestroy(Textdraw26[playerid]);
  1521.     TextDrawDestroy(Textdraw27[playerid]);
  1522.     TextDrawDestroy(Textdraw29[playerid]);
  1523.     TextDrawDestroy(Textdraw30[playerid]);
  1524.     TextDrawDestroy(Textdraw32[playerid]);
  1525.     TextDrawDestroy(Textdraw33[playerid]);
  1526.     TextDrawDestroy(Textdraw34[playerid]);
  1527.     return 1;
  1528. }
  1529. //------------------------------------------------------------------------------
  1530. stock ShowDebugInfo(playerid)
  1531. {
  1532.     TextDrawShowForPlayer(playerid, Textdraw2);
  1533.     TextDrawShowForPlayer(playerid, Textdraw3);
  1534.     TextDrawShowForPlayer(playerid, Textdraw4);
  1535.     TextDrawShowForPlayer(playerid, Textdraw5);
  1536.     TextDrawShowForPlayer(playerid, Textdraw6);
  1537.     TextDrawShowForPlayer(playerid, Textdraw7[playerid]);
  1538.     TextDrawShowForPlayer(playerid, Textdraw8[playerid]);
  1539.     TextDrawShowForPlayer(playerid, Textdraw9[playerid]);
  1540.     TextDrawShowForPlayer(playerid, Textdraw10[playerid]);
  1541.     TextDrawShowForPlayer(playerid, Textdraw11);
  1542.     TextDrawShowForPlayer(playerid, Textdraw12[playerid]);
  1543.     TextDrawShowForPlayer(playerid, Textdraw13[playerid]);
  1544.     TextDrawShowForPlayer(playerid, Textdraw14[playerid]);
  1545.     TextDrawShowForPlayer(playerid, Textdraw15[playerid]);
  1546.     TextDrawShowForPlayer(playerid, Textdraw16);
  1547.     TextDrawShowForPlayer(playerid, Textdraw17[playerid]);
  1548.     TextDrawShowForPlayer(playerid, Textdraw18[playerid]);
  1549.     TextDrawShowForPlayer(playerid, Textdraw19[playerid]);
  1550.     TextDrawShowForPlayer(playerid, Textdraw20[playerid]);
  1551.     TextDrawShowForPlayer(playerid, Textdraw21);
  1552.     TextDrawShowForPlayer(playerid, Textdraw22[playerid]);
  1553.     TextDrawShowForPlayer(playerid, Textdraw23[playerid]);
  1554.     TextDrawShowForPlayer(playerid, Textdraw24[playerid]);
  1555.     TextDrawShowForPlayer(playerid, Textdraw25);
  1556.     TextDrawShowForPlayer(playerid, Textdraw26[playerid]);
  1557.     TextDrawShowForPlayer(playerid, Textdraw27[playerid]);
  1558.     TextDrawShowForPlayer(playerid, Textdraw28);
  1559.     TextDrawShowForPlayer(playerid, Textdraw29[playerid]);
  1560.     TextDrawShowForPlayer(playerid, Textdraw30[playerid]);
  1561.     TextDrawShowForPlayer(playerid, Textdraw31);
  1562.     TextDrawShowForPlayer(playerid, Textdraw32[playerid]);
  1563.     TextDrawShowForPlayer(playerid, Textdraw33[playerid]);
  1564.     TextDrawShowForPlayer(playerid, Textdraw34[playerid]);
  1565.    
  1566.     IsUsingDebugInfo[playerid] = true;
  1567.     return 1;
  1568. }
  1569. //------------------------------------------------------------------------------
  1570. stock HideDebugInfo(playerid)
  1571. {
  1572.     TextDrawHideForPlayer(playerid, Textdraw2);
  1573.     TextDrawHideForPlayer(playerid, Textdraw3);
  1574.     TextDrawHideForPlayer(playerid, Textdraw4);
  1575.     TextDrawHideForPlayer(playerid, Textdraw5);
  1576.     TextDrawHideForPlayer(playerid, Textdraw6);
  1577.     TextDrawHideForPlayer(playerid, Textdraw7[playerid]);
  1578.     TextDrawHideForPlayer(playerid, Textdraw8[playerid]);
  1579.     TextDrawHideForPlayer(playerid, Textdraw9[playerid]);
  1580.     TextDrawHideForPlayer(playerid, Textdraw10[playerid]);
  1581.     TextDrawHideForPlayer(playerid, Textdraw11);
  1582.     TextDrawHideForPlayer(playerid, Textdraw12[playerid]);
  1583.     TextDrawHideForPlayer(playerid, Textdraw13[playerid]);
  1584.     TextDrawHideForPlayer(playerid, Textdraw14[playerid]);
  1585.     TextDrawHideForPlayer(playerid, Textdraw15[playerid]);
  1586.     TextDrawHideForPlayer(playerid, Textdraw16);
  1587.     TextDrawHideForPlayer(playerid, Textdraw17[playerid]);
  1588.     TextDrawHideForPlayer(playerid, Textdraw18[playerid]);
  1589.     TextDrawHideForPlayer(playerid, Textdraw19[playerid]);
  1590.     TextDrawHideForPlayer(playerid, Textdraw20[playerid]);
  1591.     TextDrawHideForPlayer(playerid, Textdraw21);
  1592.     TextDrawHideForPlayer(playerid, Textdraw22[playerid]);
  1593.     TextDrawHideForPlayer(playerid, Textdraw23[playerid]);
  1594.     TextDrawHideForPlayer(playerid, Textdraw24[playerid]);
  1595.     TextDrawHideForPlayer(playerid, Textdraw25);
  1596.     TextDrawHideForPlayer(playerid, Textdraw26[playerid]);
  1597.     TextDrawHideForPlayer(playerid, Textdraw27[playerid]);
  1598.     TextDrawHideForPlayer(playerid, Textdraw28);
  1599.     TextDrawHideForPlayer(playerid, Textdraw29[playerid]);
  1600.     TextDrawHideForPlayer(playerid, Textdraw30[playerid]);
  1601.     TextDrawHideForPlayer(playerid, Textdraw31);
  1602.     TextDrawHideForPlayer(playerid, Textdraw32[playerid]);
  1603.     TextDrawHideForPlayer(playerid, Textdraw33[playerid]);
  1604.     TextDrawHideForPlayer(playerid, Textdraw34[playerid]);
  1605.     IsUsingDebugInfo[playerid] = false;
  1606.     return 1;
  1607. }
  1608. //------------------------------------------------------------------------------
  1609. stock DestroyAllTextDraws()
  1610. {
  1611.     TextDrawDestroy(Textdraw2);
  1612.     TextDrawDestroy(Textdraw3);
  1613.     TextDrawDestroy(Textdraw4);
  1614.     TextDrawDestroy(Textdraw5);
  1615.     TextDrawDestroy(Textdraw6);
  1616.     TextDrawDestroy(Textdraw11);
  1617.     TextDrawDestroy(Textdraw16);
  1618.     TextDrawDestroy(Textdraw21);
  1619.     TextDrawDestroy(Textdraw25);
  1620.     TextDrawDestroy(Textdraw28);
  1621.     TextDrawDestroy(Textdraw31);
  1622.     for(new i; i<GetMaxPlayers(); i++)
  1623.     {
  1624.         if(IsPlayerConnected(i))
  1625.         {
  1626.             DestroyDebugInfo(i);
  1627.         }
  1628.     }
  1629.     return 1;
  1630. }
  1631. //------------------------------------------------------------------------------
  1632. stock ShowInteriorDialog(playerid)
  1633. {
  1634.     new dialog_string[2000];
  1635.     for(new i = 0; i < sizeof(InteriorDialogNames); i++)
  1636.     {
  1637.         if(!i)
  1638.         {
  1639.             format(dialog_string, sizeof(dialog_string), InteriorDialogNames[i]);
  1640.         }
  1641.         else
  1642.         {
  1643.             format(dialog_string, sizeof(dialog_string), "%s\n%s", dialog_string, InteriorDialogNames[i]);
  1644.         }
  1645.     }
  1646.     return ShowPlayerDialog(playerid, DIALOG_INTER, DIALOG_STYLE_LIST, ""COL_WHITE"To Interior", dialog_string, "Teleport", "Back");
  1647. }
Advertisement
Add Comment
Please, Sign In to add comment