Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // /$$$$$$$$ /$$ /$$ /$$$$$$$$
- // | $$_____/ |__/| $$ |_____ $$
- // | $$ /$$$$$$ /$$| $$ /$$$$$$ /$$$$$$ /$$/
- // | $$$$$ |____ $$| $$| $$ /$$__ $$ /$$__ $$ /$$/
- // | $$__/ /$$$$$$$| $$| $$| $$$$$$$$| $$ \__/ /$$/
- // | $$ /$$__ $$| $$| $$| $$_____/| $$ /$$/
- // | $$ | $$$$$$$| $$| $$| $$$$$$$| $$ /$$$$$$$$
- // |__/ \_______/|__/|__/ \_______/|__/ |________/
- /*******************************************************************************
- * Debug Mode [D-Mode] - by FailerZ *
- * Copyright © *
- *******************************************************************************/
- //================================ [Includes] ==================================
- #include <a_samp> //Credits to Kalcor/Kye
- #include <zcmd> //Credits to Zeex
- #include <sscanf2> //Credits to Y_Less
- #include <mapandreas> //Credits to RyDeR`
- //================================ [Defines] ===================================
- //Colors
- #define COL_GREY "{8C8C8C}"
- #define COL_WHITE "{FAFAFA}"
- #define COL_ORANGE "{FF6E00}"
- #define COL_RED "{FF0005}"
- #define COL_DRED "{AF0000}"
- #define COL_GREEN "{0FFF00}"
- #define COL_PURPLE "{B400FF}"
- #define COL_YELLOW "{F5FF00}"
- #define COL_BEGE "{FFA97F}"
- //Dialogs
- #define DIALOG_PANEL 100
- #define DIALOG_SPAWN 101
- #define DIALOG_TOOLS 102
- #define DIALOG_SETTINGS 103
- #define DIALOG_WEAPON 104
- #define DIALOG_AMMO 105
- #define DIALOG_SVEHICLE 106
- #define DIALOG_VCOLOR1 107
- #define DIALOG_VCOLOR2 108
- #define DIALOG_SKIN 109
- #define DIALOG_PERM 110
- #define DIALOG_TELE 111
- #define DIALOG_CONFIRMTELE 112
- #define DIALOG_AXIS 113
- #define DIALOG_INTER 114
- //Easy Codes
- #define SCM SendClientMessage
- #define function%0(%1) forward%0(%1); public%0(%1)
- //Others
- #define FILTERSCRIPT
- #define TAG "{AF0000}[D-Mode]{FFA97F}"
- //================================= [Script] ===================================
- //Variables & Arrays
- new Text:Textdraw0, Text:Textdraw1;
- new Text:Textdraw2, Text:Textdraw3, Text:Textdraw4, Text:Textdraw5, Text:Textdraw6;
- new Text:Textdraw7[MAX_PLAYERS], Text:Textdraw8[MAX_PLAYERS], Text:Textdraw9[MAX_PLAYERS], Text:Textdraw10[MAX_PLAYERS], Text:Textdraw11;
- new Text:Textdraw12[MAX_PLAYERS], Text:Textdraw13[MAX_PLAYERS], Text:Textdraw14[MAX_PLAYERS], Text:Textdraw15[MAX_PLAYERS], Text:Textdraw16;
- new Text:Textdraw17[MAX_PLAYERS], Text:Textdraw18[MAX_PLAYERS], Text:Textdraw19[MAX_PLAYERS], Text:Textdraw20[MAX_PLAYERS], Text:Textdraw21;
- new Text:Textdraw22[MAX_PLAYERS], Text:Textdraw23[MAX_PLAYERS], Text:Textdraw24[MAX_PLAYERS], Text:Textdraw25, Text:Textdraw26[MAX_PLAYERS];
- new Text:Textdraw27[MAX_PLAYERS], Text:Textdraw28, Text:Textdraw29[MAX_PLAYERS], Text:Textdraw30[MAX_PLAYERS], Text:Textdraw31;
- new Text:Textdraw32[MAX_PLAYERS], Text:Textdraw33[MAX_PLAYERS], Text:Textdraw34[MAX_PLAYERS];
- new bool:IsDebugging[MAX_PLAYERS], bool:Allowed[MAX_PLAYERS], bool:IsUsingDebugInfo[MAX_PLAYERS], bool:JustSpawned[MAX_PLAYERS];
- new bool:Frozen[MAX_PLAYERS], bool:Teleport[MAX_PLAYERS];
- new Veh;
- new InteriorDialogNames[146][] =
- {
- "Four Dragons' Managerial Suite",
- "Ganton Gym",
- "Brothel",
- "Brothel2",
- "Inside Track Betting",
- "Blastin' Fools Records",
- "The Big Spread Ranch",
- "Warehouse 1",
- "Warehouse 2",
- "B Dup's Apartment",
- "B Dup's Crack Palace",
- "Wheel Arch Angels",
- "OG Loc's House",
- "Barber Shop",
- "Planning Department",
- "Las Venturas Police Department",
- "Pro-Laps",
- "Sex Shop",
- "Las Venturas Tattoo parlor",
- "Lost San Fierro Tattoo parlor",
- "24/7 (version 1)",
- "Diner 1",
- "Pizza Stack",
- "Rusty Brown's Donuts",
- "Ammu-nation",
- "Victim",
- "Loco Low Co",
- "San Fierro Police Department",
- "24/7 (version 2 - large)",
- "Below The Belt Gym (Las Venturas)",
- "Transfenders",
- "World of Coq",
- "Ammu-nation (version 2)",
- "SubUrban",
- "Denise's Bedroom",
- "Helena's Barn",
- "Barbara's Love nest",
- "San Fierro Garage",
- "Oval Stadium",
- "8-Track Stadium",
- "The Pig Pen (strip club 2)",
- "Four Dragons",
- "Liberty City",
- "Ryder's house",
- "Sweet's House",
- "RC Battlefield",
- "The Johnson House",
- "Burger shot",
- "Caligula's Casino",
- "Katie's Lovenest",
- "Barber Shop 2 (Reece's)",
- "Angel Pine Trailer",
- "24/7 (version 3)",
- "Zip",
- "The Pleasure Domes",
- "Madd Dogg's Mansion",
- "Big Smoke's Crack Palace",
- "Burning Desire Building",
- "Wu-Zi Mu's",
- "Abandoned AC tower",
- "Wardrobe/Changing room",
- "Didier Sachs",
- "Casino (Redsands West)",
- "Kickstart Stadium",
- "Club",
- "Atrium",
- "Los Santos Tattoo Parlor",
- "Safe House group 1",
- "Safe House group 2",
- "Safe House group 3",
- "Safe House group 4",
- "Sherman Dam",
- "24/7 (version 4)",
- "Jefferson Motel",
- "Jet Interior",
- "The Welcome Pump",
- "Burglary House X1",
- "Burglary House X2",
- "Burglary House X3",
- "Burglary House X4",
- "Binco",
- "4 Burglary houses",
- "Blood Bowl Stadium",
- "Budget Inn Motel Room",
- "Palamino Bank",
- "Palamino Diner",
- "Dillimore Gas Station",
- "Lil' Probe Inn",
- "Torreno's Ranch",
- "Zombotech - lobby area",
- "Crypt in LS cemetery (temple)",
- "Blueberry Liquor Store",
- "Pair of Burglary Houses",
- "Crack Den",
- "Burglary House X11",
- "Burglary House X12",
- "Ammu-nation (version 3)",
- "Jay's Diner",
- "24/7 (version 5)",
- "Warehouse 3",
- "Michelle's Love Nest*",
- "Burglary House X14",
- "Sindacco Abatoir",
- "K.A.C.C. Military Fuels Depot",
- "Area 69",
- "Burglary House X13",
- "Unused Safe House",
- "Millie's Bedroom",
- "Barber Shop",
- "Dirtbike Stadium",
- "Cobra Gym",
- "Los Santos Police Department",
- "Los Santos Airport",
- "Burglary House X15",
- "Burglary House X16",
- "Burglary House X17",
- "Bike School",
- "Francis International Airport",
- "Vice Stadium",
- "Burglary House X18",
- "Burglary House X19",
- "Zero's RC Shop",
- "Ammu-nation (version 4)",
- "Ammu-nation (version 5)",
- "Burglary House X20",
- "24/7 (version 6)",
- "Secret Valley Diner",
- "Rosenberg's Office in Caligulas",
- "Fanny Batter's Whore House",
- "Colonel Furhberger's",
- "Cluckin' Bell",
- "The Camel's Toe Safehouse",
- "Caligula's Roof",
- "Old Venturas Strip Casino",
- "Driving School",
- "Verdant Bluffs Safehouse",
- "Bike School",
- "Andromada",
- "Four Dragons' Janitor's Office",
- "Bar",
- "Burglary House X21",
- "Willowfield Safehouse",
- "Burglary House X22",
- "Burglary House X23",
- "Otto's Autos",
- "Wang Cars"
- };
- new Float:InteriorDialogData[146][4] =
- {
- {2003.1178, 1015.1948, 33.008, 351.5789},
- {770.8033, -0.7033, 1000.7267, 22.8599},
- {974.0177, -9.5937, 1001.1484, 22.6045},
- {961.9308, -51.9071, 1001.1172, 95.5381},
- {830.6016, 5.9404, 1004.1797, 125.8149},
- {1037.8276, 0.397, 1001.2845, 353.9335},
- {1212.1489, -28.5388, 1000.9531, 170.5692},
- {1290.4106, 1.9512, 1001.0201, 179.9419},
- {1412.1472, -2.2836, 1000.9241, 114.661},
- {1527.0468, -12.0236, 1002.0971, 350.0013},
- {1523.5098, -47.8211, 1002.2699, 262.7038},
- {612.2191, -123.9028, 997.9922, 266.5704},
- {512.9291, -11.6929, 1001.5653, 198.7669},
- {418.4666, -80.4595, 1001.8047, 343.2358},
- {386.5259, 173.6381, 1008.3828, 63.7399},
- {288.4723, 170.0647, 1007.1794, 22.0477},
- {206.4627, -137.7076, 1003.0938, 10.9347},
- {-100.2674, -22.9376, 1000.7188, 17.285},
- {-201.2236, -43.2465, 1002.2734, 45.8613},
- {-202.9381, -6.7006, 1002.2734, 204.2693},
- {-25.7220, -187.8216, 1003.5469, 5.0760},
- {454.9853, -107.2548, 999.4376, 309.0195},
- {372.5565, -131.3607, 1001.4922, 354.2285},
- {378.026, -190.5155, 1000.6328, 141.0245},
- {315.244, -140.8858, 999.6016, 7.4226},
- {225.0306, -9.1838, 1002.218, 85.5322},
- {611.3536, -77.5574, 997.9995, 320.9263},
- {246.0688, 108.9703, 1003.2188, 0.2922},
- {6.0856, -28.8966, 1003.5494, 5.0365},
- {773.7318, -74.6957, 1000.6542, 5.2304},
- {621.4528, -23.7289, 1000.9219, 15.6789},
- {445.6003, -6.9823, 1000.7344, 172.2105},
- {285.8361, -39.0166, 1001.5156, 0.7529},
- {204.1174, -46.8047, 1001.8047, 357.5777},
- {245.2307, 304.7632, 999.1484, 273.4364},
- {290.623, 309.0622, 999.1484, 89.9164},
- {322.5014, 303.6906, 999.1484, 8.1747},
- {-2041.2334, 178.3969, 28.8465, 156.2153},
- {-1402.6613, 106.3897, 1032.2734, 105.1356},
- {-1403.0116, -250.4526, 1043.5341, 355.8576},
- {1204.6689, -13.5429, 1000.9219, 350.0204},
- {2016.1156, 1017.1541, 996.875, 88.0055},
- {-741.8495, 493.0036, 1371.9766, 71.7782},
- {2447.8704, -1704.4509, 1013.5078, 314.5253},
- {2527.0176, -1679.2076, 1015.4986, 260.9709},
- {-1129.8909, 1057.5424, 1346.4141, 274.5268},
- {2496.0549, -1695.1749, 1014.7422, 179.2174},
- {366.0248, -73.3478, 1001.5078, 292.0084},
- {2233.9363, 1711.8038, 1011.6312, 184.3891},
- {269.6405, 305.9512, 999.1484, 215.6625},
- {414.2987, -18.8044, 1001.8047, 41.4265},
- {1.1853, -3.2387, 999.4284, 87.5718},
- {-30.9875, -89.6806, 1003.5469, 359.8401},
- {161.4048, -94.2416, 1001.8047, 0.7938},
- {-2638.8232, 1407.3395, 906.4609, 94.6794},
- {1267.8407, -776.9587, 1091.9063, 231.3418},
- {2536.5322, -1294.8425, 1044.125, 254.9548},
- {2350.1597, -1181.0658, 1027.9766, 99.1864},
- {-2158.6731, 642.09, 1052.375, 86.5402},
- {419.8936, 2537.1155, 10.0, 67.6537},
- {256.9047, -41.6537, 1002.0234, 85.8774},
- {204.1658, -165.7678, 1000.5234, 181.7583},
- {1133.35, -7.8462, 1000.6797, 165.8482},
- {-1420.4277, 1616.9221, 1052.5313, 159.1255},
- {493.1443, -24.2607, 1000.6797, 356.9864},
- {1727.2853, -1642.9451, 20.2254, 172.4193},
- {-202.842, -24.0325, 1002.2734, 252.8154},
- {2233.6919, -1112.8107, 1050.8828, 8.6483},
- {1211.2484, 1049.0234, 359.941, 170.9341},
- {2319.1272, -1023.9562, 1050.2109, 167.3959},
- {2261.0977, -1137.8833, 1050.6328, 266.88},
- {-944.2402, 1886.1536, 5.0051, 179.8548},
- {-26.1856, -140.9164, 1003.5469, 2.9087},
- {2217.281, -1150.5349, 1025.7969, 273.7328},
- {1.5491, 23.3183, 1199.5938, 359.9054},
- {681.6216, -451.8933, -25.6172, 166.166},
- {234.6087, 1187.8195, 1080.2578, 349.4844},
- {225.5707, 1240.0643, 1082.1406, 96.2852},
- {224.288, 1289.1907, 1082.1406, 359.868},
- {239.2819, 1114.1991, 1080.9922, 270.2654},
- {207.5219, -109.7448, 1005.1328, 358.62},
- {295.1391, 1473.3719, 1080.2578, 352.9526},
- {-1417.8927, 932.4482, 1041.5313, 0.7013},
- {446.3247, 509.9662, 1001.4195, 330.5671},
- {2306.3826, -15.2365, 26.7496, 274.49},
- {2331.8984, 6.7816, 26.5032, 100.2357},
- {663.0588, -573.6274, 16.3359, 264.9829},
- {-227.5703, 1401.5544, 27.7656, 269.2978},
- {-688.1496, 942.0826, 13.6328, 177.6574},
- {-1916.1268, 714.8617, 46.5625, 152.2839},
- {818.7714, -1102.8689, 25.794, 91.1439},
- {255.2083, -59.6753, 1.5703, 1.4645},
- {446.626, 1397.738, 1084.3047, 343.9647},
- {227.3922, 1114.6572, 1080.9985, 267.459},
- {227.7559, 1114.3844, 1080.9922, 266.2624},
- {261.1165, 1287.2197, 1080.2578, 178.9149},
- {291.7626, -80.1306, 1001.5156, 290.2195},
- {449.0172, -88.9894, 999.5547, 89.6608},
- {-27.844, -26.6737, 1003.5573, 184.3118},
- {2135.2004, -2276.2815, 20.6719, 318.59},
- {306.1966, 307.819, 1003.3047, 203.1354},
- {24.3769, 1341.1829, 1084.375, 8.3305},
- {963.0586, 2159.7563, 1011.0303, 175.313},
- {2548.4807, 2823.7429, 10.8203, 270.6003},
- {215.1515, 1874.0579, 13.1406, 177.5538},
- {221.6766, 1142.4962, 1082.6094, 184.9618},
- {2323.7063, -1147.6509, 1050.7101, 206.5352},
- {344.9984, 307.1824, 999.1557, 193.643},
- {411.9707, -51.9217, 1001.8984, 173.3449},
- {-1421.5618, -663.8262, 1059.5569, 170.9341},
- {773.8887, -47.7698, 1000.5859, 10.7161},
- {246.6695, 65.8039, 1003.6406, 7.9562},
- {-1864.9434, 55.7325, 1055.5276, 85.8541},
- {-262.1759, 1456.6158, 1084.3672, 82.459},
- {22.861, 1404.9165, 1084.4297, 349.6158},
- {140.3679, 1367.8837, 1083.8621, 349.2372},
- {1494.8589, 1306.48, 1093.2953, 196.065},
- {-1813.213, -58.012, 1058.9641, 335.3199},
- {-1401.067, 1265.3706, 1039.8672, 178.6483},
- {234.2826, 1065.229, 1084.2101, 4.3864},
- {-68.5145, 1353.8485, 1080.2109, 3.5742},
- {-2240.1028, 136.973, 1035.4141, 269.0954},
- {297.144, -109.8702, 1001.5156, 20.2254},
- {316.5025, -167.6272, 999.5938, 10.3031},
- {-285.2511, 1471.197, 1084.375, 85.6547},
- {-26.8339, -55.5846, 1003.5469, 3.9528},
- {442.1295, -52.4782, 999.7167, 177.9394},
- {2182.2017, 1628.5848, 1043.8723, 224.8601},
- {748.4623, 1438.2378, 1102.9531, 0.6069},
- {2807.3604, -1171.7048, 1025.5703, 193.7117},
- {366.0002, -9.4338, 1001.8516, 160.528},
- {2216.1282, -1076.3052, 1050.4844, 86.428},
- {2268.5156, 1647.7682, 1084.2344, 99.7331},
- {2236.6997, -1078.9478, 1049.0234, 2.5706},
- {-2031.1196, -115.8287, 1035.1719, 190.1877},
- {2365.1089, -1133.0795, 1050.875, 177.3947},
- {1168.512, 1360.1145, 10.9293, 196.5933},
- {315.4544, 976.5972, 1960.8511, 359.6368},
- {1893.0731, 1017.8958, 31.8828, 86.1044},
- {501.9578, -70.5648, 998.7578, 171.5706},
- {-42.5267, 1408.23, 1084.4297, 172.068},
- {2283.3118, 1139.307, 1050.8984, 19.7032},
- {84.9244, 1324.2983, 1083.8594, 159.5582},
- {260.7421, 1238.2261, 1084.2578, 84.3084},
- {-1658.1656, 1215.0002, 7.25, 103.9074},
- {-1961.6281, 295.2378, 35.4688, 264.4891}
- };
- new InteriorDialogInteriors[146][1] =
- {
- {11},
- {5},
- {3},
- {3},
- {3},
- {3},
- {3},
- {18},
- {1},
- {3},
- {2},
- {3},
- {3},
- {3},
- {3},
- {3},
- {3},
- {3},
- {3},
- {17},
- {17},
- {5},
- {5},
- {17},
- {7},
- {5},
- {2},
- {10},
- {10},
- {7},
- {1},
- {1},
- {1},
- {1},
- {1},
- {3},
- {5},
- {1},
- {1},
- {7},
- {2},
- {10},
- {1},
- {2},
- {1},
- {10},
- {3},
- {10},
- {1},
- {2},
- {2},
- {2},
- {18},
- {18},
- {3},
- {5},
- {2},
- {5},
- {1},
- {10},
- {14},
- {14},
- {12},
- {14},
- {17},
- {18},
- {16},
- {5},
- {6},
- {9},
- {10},
- {17},
- {16},
- {15},
- {1},
- {1},
- {3},
- {2},
- {1},
- {5},
- {15},
- {15},
- {15},
- {12},
- {0},
- {0},
- {0},
- {18},
- {0},
- {0},
- {0},
- {0},
- {2},
- {5},
- {5},
- {4},
- {4},
- {4},
- {4},
- {0},
- {4},
- {10},
- {1},
- {0},
- {0},
- {4},
- {12},
- {6},
- {12},
- {4},
- {6},
- {6},
- {14},
- {4},
- {5},
- {5},
- {3},
- {14},
- {16},
- {6},
- {6},
- {6},
- {6},
- {6},
- {15},
- {6},
- {6},
- {2},
- {6},
- {8},
- {9},
- {1},
- {1},
- {2},
- {3},
- {8},
- {0},
- {9},
- {10},
- {11},
- {8},
- {11},
- {9},
- {9},
- {0},
- {0}
- };
- //------------------------------------------------------------------------------
- //CallBacks & Functions
- public OnFilterScriptInit()
- {
- print("---------------------------------");
- print("| Debug Mode[D-Mode] by FailerZ |");
- print("| Loaded |");
- print("---------------------------------");
- Textdraw0 = TextDrawCreate(310.000000, 429.000000, "Debug Mode");
- TextDrawAlignment(Textdraw0, 2);
- TextDrawBackgroundColor(Textdraw0, 255);
- TextDrawFont(Textdraw0, 0);
- TextDrawLetterSize(Textdraw0, 0.500000, 1.799999);
- TextDrawColor(Textdraw0, -1526726401);
- TextDrawSetOutline(Textdraw0, 1);
- TextDrawSetProportional(Textdraw0, 1);
- TextDrawUseBox(Textdraw0, 1);
- TextDrawBoxColor(Textdraw0, 16843158);
- TextDrawTextSize(Textdraw0, 0.000000, 1050.000000);
- Textdraw1 = TextDrawCreate(303.000000, 429.000000, "_");
- TextDrawAlignment(Textdraw1, 2);
- TextDrawBackgroundColor(Textdraw1, 255);
- TextDrawFont(Textdraw1, 0);
- TextDrawLetterSize(Textdraw1, 0.500000, -0.500000);
- TextDrawColor(Textdraw1, -939523841);
- TextDrawSetOutline(Textdraw1, 1);
- TextDrawSetProportional(Textdraw1, 1);
- TextDrawUseBox(Textdraw1, 1);
- TextDrawBoxColor(Textdraw1, 255);
- TextDrawTextSize(Textdraw1, 0.000000, 1050.000000);
- Textdraw2 = TextDrawCreate(637.000000, 105.000000, "_");
- TextDrawAlignment(Textdraw2, 2);
- TextDrawBackgroundColor(Textdraw2, 255);
- TextDrawFont(Textdraw2, 1);
- TextDrawLetterSize(Textdraw2, 0.500000, 35.299999);
- TextDrawColor(Textdraw2, -1);
- TextDrawSetOutline(Textdraw2, 0);
- TextDrawSetProportional(Textdraw2, 1);
- TextDrawSetShadow(Textdraw2, 1);
- TextDrawUseBox(Textdraw2, 1);
- TextDrawBoxColor(Textdraw2, 16843158);
- TextDrawTextSize(Textdraw2, 3.000000, 289.000000);
- Textdraw3 = TextDrawCreate(1018.000000, 104.000000, "_");
- TextDrawAlignment(Textdraw3, 2);
- TextDrawBackgroundColor(Textdraw3, 255);
- TextDrawFont(Textdraw3, 0);
- TextDrawLetterSize(Textdraw3, 0.500000, -0.500000);
- TextDrawColor(Textdraw3, -939523841);
- TextDrawSetOutline(Textdraw3, 1);
- TextDrawSetProportional(Textdraw3, 1);
- TextDrawUseBox(Textdraw3, 1);
- TextDrawBoxColor(Textdraw3, 255);
- TextDrawTextSize(Textdraw3, 0.000000, 1050.000000);
- Textdraw4 = TextDrawCreate(490.000000, 104.000000, "_");
- TextDrawAlignment(Textdraw4, 2);
- TextDrawBackgroundColor(Textdraw4, 255);
- TextDrawFont(Textdraw4, 0);
- TextDrawLetterSize(Textdraw4, 0.500000, 35.499977);
- TextDrawColor(Textdraw4, -939523841);
- TextDrawSetOutline(Textdraw4, 1);
- TextDrawSetProportional(Textdraw4, 1);
- TextDrawUseBox(Textdraw4, 1);
- TextDrawBoxColor(Textdraw4, 255);
- TextDrawTextSize(Textdraw4, -39.000000, -5.000000);
- Textdraw5 = TextDrawCreate(567.000000, 104.000000, "DEBUG INFO");
- TextDrawAlignment(Textdraw5, 2);
- TextDrawBackgroundColor(Textdraw5, 255);
- TextDrawFont(Textdraw5, 2);
- TextDrawLetterSize(Textdraw5, 0.500000, 1.799999);
- TextDrawColor(Textdraw5, -1526726401);
- TextDrawSetOutline(Textdraw5, 1);
- TextDrawSetProportional(Textdraw5, 1);
- Textdraw6 = TextDrawCreate(1019.000000, 126.000000, "_");
- TextDrawAlignment(Textdraw6, 2);
- TextDrawBackgroundColor(Textdraw6, 255);
- TextDrawFont(Textdraw6, 0);
- TextDrawLetterSize(Textdraw6, 0.500000, -0.500000);
- TextDrawColor(Textdraw6, -939523841);
- TextDrawSetOutline(Textdraw6, 1);
- TextDrawSetProportional(Textdraw6, 1);
- TextDrawUseBox(Textdraw6, 1);
- TextDrawBoxColor(Textdraw6, 255);
- TextDrawTextSize(Textdraw6, 0.000000, 1050.000000);
- Textdraw11 = TextDrawCreate(1018.000000, 179.000000, "_");
- TextDrawAlignment(Textdraw11, 2);
- TextDrawBackgroundColor(Textdraw11, 255);
- TextDrawFont(Textdraw11, 0);
- TextDrawLetterSize(Textdraw11, 0.500000, -0.500000);
- TextDrawColor(Textdraw11, -939523841);
- TextDrawSetOutline(Textdraw11, 1);
- TextDrawSetProportional(Textdraw11, 1);
- TextDrawUseBox(Textdraw11, 1);
- TextDrawBoxColor(Textdraw11, 255);
- TextDrawTextSize(Textdraw11, 0.000000, 1050.000000);
- Textdraw16 = TextDrawCreate(1018.000000, 231.000000, "_");
- TextDrawAlignment(Textdraw16, 2);
- TextDrawBackgroundColor(Textdraw16, 255);
- TextDrawFont(Textdraw16, 0);
- TextDrawLetterSize(Textdraw16, 0.500000, -0.500000);
- TextDrawColor(Textdraw16, -939523841);
- TextDrawSetOutline(Textdraw16, 1);
- TextDrawSetProportional(Textdraw16, 1);
- TextDrawUseBox(Textdraw16, 1);
- TextDrawBoxColor(Textdraw16, 255);
- TextDrawTextSize(Textdraw16, 0.000000, 1050.000000);
- Textdraw21 = TextDrawCreate(1018.000000, 286.000000, "_");
- TextDrawAlignment(Textdraw21, 2);
- TextDrawBackgroundColor(Textdraw21, 255);
- TextDrawFont(Textdraw21, 0);
- TextDrawLetterSize(Textdraw21, 0.500000, -0.500000);
- TextDrawColor(Textdraw21, -939523841);
- TextDrawSetOutline(Textdraw21, 1);
- TextDrawSetProportional(Textdraw21, 1);
- TextDrawUseBox(Textdraw21, 1);
- TextDrawBoxColor(Textdraw21, 255);
- TextDrawTextSize(Textdraw21, 0.000000, 1050.000000);
- Textdraw25 = TextDrawCreate(1018.000000, 331.000000, "_");
- TextDrawAlignment(Textdraw25, 2);
- TextDrawBackgroundColor(Textdraw25, 255);
- TextDrawFont(Textdraw25, 0);
- TextDrawLetterSize(Textdraw25, 0.500000, -0.500000);
- TextDrawColor(Textdraw25, -939523841);
- TextDrawSetOutline(Textdraw25, 1);
- TextDrawSetProportional(Textdraw25, 1);
- TextDrawUseBox(Textdraw25, 1);
- TextDrawBoxColor(Textdraw25, 255);
- TextDrawTextSize(Textdraw25, 0.000000, 1050.000000);
- Textdraw28 = TextDrawCreate(1018.000000, 361.000000, "_");
- TextDrawAlignment(Textdraw28, 2);
- TextDrawBackgroundColor(Textdraw28, 255);
- TextDrawFont(Textdraw28, 0);
- TextDrawLetterSize(Textdraw28, 0.500000, -0.500000);
- TextDrawColor(Textdraw28, -939523841);
- TextDrawSetOutline(Textdraw28, 1);
- TextDrawSetProportional(Textdraw28, 1);
- TextDrawUseBox(Textdraw28, 1);
- TextDrawBoxColor(Textdraw28, 255);
- TextDrawTextSize(Textdraw28, 0.000000, 1050.000000);
- Textdraw31 = TextDrawCreate(1018.000000, 390.000000, "_");
- TextDrawAlignment(Textdraw31, 2);
- TextDrawBackgroundColor(Textdraw31, 255);
- TextDrawFont(Textdraw31, 0);
- TextDrawLetterSize(Textdraw31, 0.500000, -0.500000);
- TextDrawColor(Textdraw31, -939523841);
- TextDrawSetOutline(Textdraw31, 1);
- TextDrawSetProportional(Textdraw31, 1);
- TextDrawUseBox(Textdraw31, 1);
- TextDrawBoxColor(Textdraw31, 255);
- TextDrawTextSize(Textdraw31, 0.000000, 1050.000000);
- for(new i; i<GetMaxPlayers(); i++)
- {
- if(IsPlayerConnected(i))
- {
- Allowed[i] = false;
- Teleport[i] = false;
- JustSpawned[i] = true;
- CreateDebugInfo(i);
- }
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnFilterScriptExit()
- {
- print("----------------------------------");
- print("| Debug Mode [D-Mode] by FailerZ |");
- print("| Unloaded |");
- print("----------------------------------");
- for(new i; i<GetMaxPlayers(); i++)
- {
- if(IsPlayerConnected(i))
- {
- Allowed[i] = false;
- Teleport[i] = false;
- JustSpawned[i] = false;
- HideDebugInfo(i);
- HideDebugBar(i);
- }
- }
- DestroyAllTextDraws();
- DestroyVehicle(Veh);
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnPlayerConnect(playerid)
- {
- Allowed[playerid] = false;
- Teleport[playerid] = false;
- JustSpawned[playerid] = false;
- CreateDebugInfo(playerid);
- IsDebugging[playerid] = false;
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnPlayerSpawn(playerid)
- {
- JustSpawned[playerid] = true;
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnPlayerDisconnect(playerid, reason)
- {
- Allowed[playerid] = false;
- Teleport[playerid] = false;
- JustSpawned[playerid] = false;
- DestroyDebugInfo(playerid);
- IsDebugging[playerid] = false;
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
- {
- new str[256];
- if(Teleport[playerid] == true)
- {
- SetPlayerInterior(playerid, 0);
- if(IsPlayerInAnyVehicle(playerid))
- {
- new VehID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehID, fX, fY, GetPointZPos(fX, fY)+3);
- PutPlayerInVehicle(playerid, VehID, 0);
- }
- else SetPlayerPos(playerid, fX, fY, GetPointZPos(fX, fY)+2);
- format(str, sizeof(str), ""TAG" Teleported to "COL_WHITE"[X: %0.2f | Y: %0.2f | Z: %0.2f]", fX, fY, GetPointZPos(fX, fY));
- SCM(playerid, -1, str);
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnPlayerUpdate(playerid)
- {
- /* ** *** Part 1 *** ** */
- new Float:HP, HPstr[50];
- GetPlayerHealth(playerid, HP);
- format(HPstr, sizeof(HPstr), "Health: %.0f%%", HP);
- TextDrawSetString(Textdraw7[playerid], HPstr);
- new Float:AP, APstr[50];
- GetPlayerArmour(playerid, AP);
- format(APstr, sizeof(APstr), "Armour: %.0f%%", AP);
- TextDrawSetString(Textdraw8[playerid], APstr);
- new Weap, WeapN[50], Wstr[100];
- Weap = GetPlayerWeapon(playerid);
- if(Weap != 0)
- {
- GetWeaponName(Weap, WeapN, sizeof(WeapN));
- format(Wstr, sizeof(Wstr), "Weapon: %d/%s", Weap, WeapN);
- TextDrawSetString(Textdraw9[playerid], Wstr);
- }
- if(Weap == 0) TextDrawSetString(Textdraw9[playerid], "Weapon: 0/Fist");
- new SKstr[50];
- format(SKstr, sizeof(SKstr), "Skin: %d", GetPlayerSkin(playerid));
- TextDrawSetString(Textdraw10[playerid], SKstr);
- /* ** *** Part 2 *** ** */
- new Float:X, Float:Y, Float:Z, Float:An;
- new Xstr[50], Ystr[50], Zstr[50], Anstr[50];
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, An);
- format(Xstr, sizeof(Xstr), "Position X: %.3f", X);
- format(Ystr, sizeof(Ystr), "Position Y: %.3f", Y);
- format(Zstr, sizeof(Zstr), "Position Z: %.3f", Z);
- format(Anstr, sizeof(Anstr), "Facing Angle: %.3f", An);
- TextDrawSetString(Textdraw12[playerid], Xstr);
- TextDrawSetString(Textdraw13[playerid], Ystr);
- TextDrawSetString(Textdraw14[playerid], Zstr);
- TextDrawSetString(Textdraw15[playerid], Anstr);
- /* ** *** Part 3 *** ** */
- if(GetPlayerAnimationIndex(playerid))
- {
- new ALib[32], AName[32], ALstr[50], ANstr[50], AXstr[50];
- GetAnimationName(GetPlayerAnimationIndex(playerid), ALib, sizeof(ALib), AName, sizeof(AName));
- format(ALstr, sizeof(ALstr), "A-Lib: %s", ALib);
- format(ANstr, sizeof(ANstr), "A-Name: %s", AName);
- format(AXstr, sizeof(AXstr), "A-Index: %d", GetPlayerAnimationIndex(playerid));
- TextDrawSetString(Textdraw17[playerid], ALstr);
- TextDrawSetString(Textdraw18[playerid], ANstr);
- TextDrawSetString(Textdraw19[playerid], AXstr);
- }
- else
- {
- TextDrawSetString(Textdraw17[playerid], "A-Lib: None");
- TextDrawSetString(Textdraw18[playerid], "A-Name: None");
- TextDrawSetString(Textdraw19[playerid], "A-Index: None");
- }
- new SAstr[50];
- format(SAstr, sizeof(SAstr), "Special Action: %d", GetPlayerSpecialAction(playerid));
- TextDrawSetString(Textdraw20[playerid], SAstr);
- /* ** *** Part 4 *** ** */
- new Name[MAX_PLAYER_NAME], Nstr[50];
- GetPlayerName(playerid, Name, sizeof(Name));
- format(Nstr, sizeof(Nstr), "Name: %s", Name);
- TextDrawSetString(Textdraw22[playerid], Nstr);
- new IDstr[50];
- format(IDstr, sizeof(IDstr), "ID: %d", playerid);
- TextDrawSetString(Textdraw23[playerid], IDstr);
- new Pstr[144];
- format(Pstr, sizeof(Pstr), "Packet Loss: %.2f%%", NetStats_PacketLossPercent(playerid));
- TextDrawSetString(Textdraw24[playerid], Pstr);
- /* ** *** Part 5 *** ** */
- new Year, Month, Day, DTstr[50];
- getdate(Year, Month, Day);
- format(DTstr, sizeof(DTstr), "Date: %02d/%02d/%02d", Day, Month, Year);
- TextDrawSetString(Textdraw26[playerid], DTstr);
- new Hour, Minute, Second, TMstr[50];
- gettime(Hour, Minute, Second);
- format(TMstr, sizeof(TMstr), "Time: %02d:%02d:%02d", Hour, Minute, Second);
- TextDrawSetString(Textdraw27[playerid], TMstr);
- /* ** *** Part 6 *** ** */
- new VWstr[50];
- format(VWstr, sizeof(VWstr), "Virtual World: %d", GetPlayerVirtualWorld(playerid));
- TextDrawSetString(Textdraw29[playerid], VWstr);
- new Istr[50];
- format(Istr, sizeof(Istr), "Interior: %d", GetPlayerInterior(playerid));
- TextDrawSetString(Textdraw30[playerid], Istr);
- /* ** *** Part 7 *** ** */
- if(IsPlayerInAnyVehicle(playerid))
- {
- new vID, vMod, Float:vHP, vIDstr[50], vModstr[50], vHPstr[50];
- vID = GetPlayerVehicleID(playerid);
- vMod = GetVehicleModel(vID);
- GetVehicleHealth(vID, vHP);
- format(vIDstr, sizeof(vIDstr), "Vehicle ID: %d", vID);
- format(vModstr, sizeof(vModstr), "Vehicle Model: %d", vMod);
- format(vHPstr, sizeof(vHPstr), "Vehicle Health: %.2f", vHP);
- TextDrawSetString(Textdraw32[playerid], vIDstr);
- TextDrawSetString(Textdraw33[playerid], vModstr);
- TextDrawSetString(Textdraw34[playerid], vHPstr);
- }
- else
- {
- TextDrawSetString(Textdraw32[playerid], "Vehicle ID: None");
- TextDrawSetString(Textdraw33[playerid], "Vehicle Model: None");
- TextDrawSetString(Textdraw34[playerid], "Vehicle Health: None");
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- if(Veh == vehicleid && Veh != INVALID_VEHICLE_ID)
- {
- DestroyVehicle(Veh);
- }
- return 1;
- }
- //================================== [Dialogs] =================================
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new ostr[250];
- strcat(ostr, ""COL_GREEN"Spawn/Change\n"COL_ORANGE"Useful Tools\n"COL_RED"Settings");
- new sstr[250];
- strcat(sstr, ""COL_WHITE"Spawn Weapon\n"COL_WHITE"Spawn Vehicle\n"COL_WHITE"Change Skin\n"COL_GREY"Spawn Jetpack");
- new tstr[250];
- strcat(tstr, ""COL_WHITE"Teleport\n"COL_GREY"Slap\n"COL_GREY"Freeze/Unfreeze\n"COL_GREY"Disarm");
- new setstr[250];
- strcat(setstr, ""COL_WHITE"Edit Permissions\n"COL_GREY"Toggle Debug Info");
- new permstr[256];
- 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*");
- new telestr[256];
- strcat(telestr, ""COL_GREY"To Map Marker\n"COL_WHITE"To Interior\n"COL_WHITE"X,Y,Z Coordinate");
- switch(dialogid)
- {
- case DIALOG_PANEL:
- {
- if(response) //Select
- {
- switch(listitem)
- {
- case 0: ShowPlayerDialog(playerid, DIALOG_SPAWN, DIALOG_STYLE_LIST, ""COL_GREEN"Spawn/Change", sstr, "Select", "Back"); //Spawn Menu
- case 1: ShowPlayerDialog(playerid, DIALOG_TOOLS, DIALOG_STYLE_LIST, ""COL_ORANGE"Useful Tools", tstr, "Select", "Back"); //Useful Tools
- case 2: ShowPlayerDialog(playerid, DIALOG_SETTINGS, DIALOG_STYLE_LIST, ""COL_RED"Settings", setstr, "Select", "Back"); //Settings
- }
- return 1;
- }
- else return 0; //Close
- }
- // ------------------------------------------------------------------------
- case DIALOG_SPAWN:
- {
- if(response) //Select
- {
- switch(listitem)
- {
- 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
- case 1: //Vehicle
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- SCM(playerid, -1, ""TAG" You are already in a vehicle");
- ShowPlayerDialog(playerid, DIALOG_SPAWN, DIALOG_STYLE_LIST, ""COL_GREEN"Spawn/Change", sstr, "Select", "Back");
- return 1;
- }
- 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");
- }
- 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
- case 3: //Jetpack
- {
- SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
- PlayerPlaySound(playerid, 1133, 0, 0, 0);
- SCM(playerid, -1, ""TAG" Spawned a "COL_WHITE"Jetpack");
- }
- }
- }
- else ShowPlayerDialog(playerid, DIALOG_PANEL, DIALOG_STYLE_LIST, ""COL_DRED"Debug Mode "COL_WHITE"|| "COL_GREY"Access Panel", ostr, "Select", "Close"); //Back
- }
- // ------------------------------------------------------------------------
- case DIALOG_SVEHICLE:
- {
- if(response) //Continue
- {
- new vehiclem;
- 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");
- 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");
- SetPVarInt(playerid, "DVehicleModel", vehiclem);
- 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");
- }
- else ShowPlayerDialog(playerid, DIALOG_SPAWN, DIALOG_STYLE_LIST, ""COL_GREEN"Spawn/Change", sstr, "Select", "Back"); //Back
- }
- // ------------------------------------------------------------------------
- case DIALOG_VCOLOR1:
- {
- if(response) //Continue
- {
- new vcolor1;
- 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");
- 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");
- SetPVarInt(playerid, "DVehicleColor1", vcolor1);
- 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");
- }
- 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
- }
- // ------------------------------------------------------------------------
- case DIALOG_VCOLOR2:
- {
- if(response) //Continue
- {
- new vcolor2;
- 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");
- 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");
- new string[128], Float:X, Float:Y, Float:Z, Float:FA;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, FA);
- Veh = CreateVehicle(GetPVarInt(playerid, "DVehicleModel"), X, Y, Z, FA, GetPVarInt(playerid, "DVehicleColor1"), vcolor2, 0);
- PutPlayerInVehicle(playerid, Veh, 0);
- AddVehicleComponent(Veh, 1010);
- PlayerPlaySound(playerid, 1133, 0, 0, 0);
- format(string, sizeof(string), ""TAG" Spawned a Vehicle "COL_WHITE"[Model: %d | Color1: %d | Color2: %d]", GetPVarInt(playerid, "DVehicleModel"), GetPVarInt(playerid, "DVehicleColor1"), vcolor2);
- SCM(playerid, -1, string);
- }
- 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
- }
- // ------------------------------------------------------------------------
- case DIALOG_WEAPON:
- {
- if(response) //Continue
- {
- new weap;
- 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");
- 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");
- SetPVarInt(playerid, "DWeaponID", strval(inputtext));
- 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");
- }
- else ShowPlayerDialog(playerid, DIALOG_SPAWN, DIALOG_STYLE_LIST, ""COL_GREEN"Spawn/Change", sstr, "Select", "Back"); //Back
- }
- // ------------------------------------------------------------------------
- case DIALOG_AMMO:
- {
- if(response) //Continue
- {
- new ammo;
- 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");
- 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");
- GivePlayerWeapon(playerid, GetPVarInt(playerid, "DWeaponID"), ammo);
- PlayerPlaySound(playerid, 1054, 0, 0, 0);
- new string[128], wname[50];
- GetWeaponName(GetPVarInt(playerid, "DWeaponID"), wname, sizeof(wname));
- format(string, sizeof(string), ""TAG" Spawned a Weapon "COL_WHITE"[ID: %d | Name: %s | Ammo: %d]", GetPVarInt(playerid, "DWeaponID"), wname, ammo);
- SCM(playerid, -1, string);
- }
- 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
- }
- // ------------------------------------------------------------------------
- case DIALOG_SKIN:
- {
- if(response) //Continue
- {
- new skinid;
- 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");
- 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");
- SetPlayerSkin(playerid, skinid);
- PlayerPlaySound(playerid, 1054, 0, 0, 0);
- new string[128];
- format(string, sizeof(string), ""TAG" Changed your Skin "COL_WHITE"[ID: %d]", skinid);
- SCM(playerid, -1, string);
- }
- else ShowPlayerDialog(playerid, DIALOG_SPAWN, DIALOG_STYLE_LIST, ""COL_GREEN"Spawn/Change", sstr, "Select", "Back"); //Back
- }
- // ------------------------------------------------------------------------
- case DIALOG_TOOLS:
- {
- if(response) //Select
- {
- switch(listitem)
- {
- case 0: //Teleport
- {
- ShowPlayerDialog(playerid, DIALOG_TELE, DIALOG_STYLE_LIST, ""COL_WHITE"Teleport", telestr, "Select", "Back");
- }
- case 1: //Slap
- {
- new Float:Pos[3];
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]+10);
- PlayerPlaySound(playerid, 1130, Pos[0], Pos[1], Pos[2]+10);
- SCM(playerid, -1, ""TAG" You have been "COL_WHITE"Slapped");
- ShowPlayerDialog(playerid, DIALOG_TOOLS, DIALOG_STYLE_LIST, ""COL_ORANGE"Useful Tools", tstr, "Select", "Back");
- }
- case 2: //Freeze/Unfreeze
- {
- if(Frozen[playerid] == false)
- {
- TogglePlayerControllable(playerid, false);
- Frozen[playerid] = true;
- PlayerPlaySound(playerid, 1138, 0, 0, 0);
- SCM(playerid, -1, ""TAG" You have been "COL_WHITE"Frozen");
- ShowPlayerDialog(playerid, DIALOG_TOOLS, DIALOG_STYLE_LIST, ""COL_ORANGE"Useful Tools", tstr, "Select", "Back");
- return 1;
- }
- if(Frozen[playerid] == true)
- {
- TogglePlayerControllable(playerid, true);
- Frozen[playerid] = false;
- PlayerPlaySound(playerid, 1139, 0, 0, 0);
- SCM(playerid, -1, ""TAG" You have been "COL_WHITE"Unfrozen");
- ShowPlayerDialog(playerid, DIALOG_TOOLS, DIALOG_STYLE_LIST, ""COL_ORANGE"Useful Tools", tstr, "Select", "Back");
- return 1;
- }
- return 1;
- }
- case 3: //Disarm
- {
- ResetPlayerWeapons(playerid);
- PlayerPlaySound(playerid, 1083, 0, 0, 0);
- SCM(playerid, -1, ""TAG" You have been "COL_WHITE"Disarmed");
- ShowPlayerDialog(playerid, DIALOG_TOOLS, DIALOG_STYLE_LIST, ""COL_ORANGE"Useful Tools", tstr, "Select", "Back");
- }
- }
- }
- else ShowPlayerDialog(playerid, DIALOG_PANEL, DIALOG_STYLE_LIST, ""COL_DRED"Debug Mode "COL_WHITE"|| "COL_GREY"Access Panel", ostr, "Select", "Close"); //Back
- }
- // ------------------------------------------------------------------------
- case DIALOG_SETTINGS:
- {
- if(response) //Select
- {
- switch(listitem)
- {
- case 0: //Edit Permissions
- {
- if(!IsPlayerAdmin(playerid))
- {
- SCM(playerid, -1, ""TAG" Only "COL_WHITE"Rcon Admins "COL_BEGE"allowed to access this option.");
- ShowPlayerDialog(playerid, DIALOG_PANEL, DIALOG_STYLE_LIST, ""COL_DRED"Debug Mode "COL_WHITE"|| "COL_GREY"Access Panel", ostr, "Select", "Close");
- return 1;
- }
- ShowPlayerDialog(playerid, DIALOG_PERM, DIALOG_STYLE_INPUT, ""COL_WHITE"Edit Permissions", permstr, "Edit", "Back");
- }
- case 1: //Toggle Debug Info
- {
- if(IsUsingDebugInfo[playerid] == false)
- {
- ShowDebugInfo(playerid);
- SCM(playerid, -1, ""TAG" Debug Info: "COL_GREEN"ON");
- ShowPlayerDialog(playerid, DIALOG_SETTINGS, DIALOG_STYLE_LIST, ""COL_RED"Settings", setstr, "Select", "Back");
- return 1;
- }
- if(IsUsingDebugInfo[playerid] == true)
- {
- HideDebugInfo(playerid);
- SCM(playerid, -1, ""TAG" Debug Info: "COL_RED"OFF");
- ShowPlayerDialog(playerid, DIALOG_SETTINGS, DIALOG_STYLE_LIST, ""COL_RED"Settings", setstr, "Select", "Back");
- return 1;
- }
- }
- }
- }
- else ShowPlayerDialog(playerid, DIALOG_PANEL, DIALOG_STYLE_LIST, ""COL_DRED"Debug Mode "COL_WHITE"|| "COL_GREY"Access Panel", ostr, "Select", "Close"); //Back
- }
- // ------------------------------------------------------------------------
- case DIALOG_PERM:
- {
- if(response) //Select
- {
- new targetid, pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, pName, sizeof(pName));
- if(sscanf(inputtext, "u", targetid)) return ShowPlayerDialog(playerid, DIALOG_PERM, DIALOG_STYLE_INPUT, ""COL_WHITE"Edit Permissions", permstr, "Edit", "Back");
- if(!IsPlayerConnected(targetid))
- {
- SCM(playerid, -1, ""TAG" Invalid "COL_WHITE"Player ID/Name");
- ShowPlayerDialog(playerid, DIALOG_PERM, DIALOG_STYLE_INPUT, ""COL_WHITE"Edit Permissions", permstr, "Edit", "Back");
- return 1;
- }
- if(IsPlayerAdmin(targetid)) return ShowPlayerDialog(playerid, DIALOG_PERM, DIALOG_STYLE_INPUT, ""COL_WHITE"Edit Permissions", permstr, "Edit", "Back");
- if(Allowed[targetid] == false && !IsPlayerAdmin(targetid))
- {
- Allowed[strval(inputtext)] = true;
- SCM(strval(inputtext), -1, ""TAG" You can now use the "COL_DRED"Debug Mode"COL_BEGE", Type '"COL_WHITE"/dmode"COL_BEGE"' to start");
- new string[128];
- format(string, sizeof(string), ""TAG" Player "COL_WHITE"%s[%d] "COL_BEGE"can use the "COL_DRED"Debug Mode "COL_BEGE"now", pName, targetid);
- SCM(playerid, -1, string);
- ShowPlayerDialog(playerid, DIALOG_PERM, DIALOG_STYLE_INPUT, ""COL_WHITE"Edit Permissions", permstr, "Edit", "Back");
- return 1;
- }
- if(Allowed[targetid] == true && !IsPlayerAdmin(targetid))
- {
- Allowed[strval(inputtext)] = false;
- Teleport[strval(inputtext)] = false;
- HideDebugInfo(strval(inputtext));
- HideDebugBar(strval(inputtext));
- SCM(targetid, -1, ""TAG" Debug Mode: "COL_RED"Disabled");
- SCM(targetid, -1, ""TAG" You cannot use the "COL_DRED"Debug Mode "COL_BEGE"anymore");
- new string[128];
- format(string, sizeof(string), ""TAG" Player "COL_WHITE"%s[%d] "COL_BEGE"cannot use the "COL_DRED"Debug Mode "COL_BEGE"anymore", pName, targetid);
- SCM(playerid, -1, string);
- ShowPlayerDialog(playerid, DIALOG_PERM, DIALOG_STYLE_INPUT, ""COL_WHITE"Edit Permissions", permstr, "Edit", "Back");
- return 1;
- }
- }
- else ShowPlayerDialog(playerid, DIALOG_SETTINGS, DIALOG_STYLE_LIST, ""COL_RED"Settings", setstr, "Select", "Back"); //Back
- }
- // ------------------------------------------------------------------------
- case DIALOG_TELE:
- {
- if(response) //Select
- {
- switch(listitem)
- {
- case 0: //To Map Marker
- {
- if(Teleport[playerid] == false)
- {
- Teleport[playerid] = true;
- 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", "");
- }
- else
- {
- Teleport[playerid] = false;
- ShowPlayerDialog(playerid, DIALOG_CONFIRMTELE, DIALOG_STYLE_MSGBOX, ""COL_WHITE"Teleport", ""COL_RED"You can no longer teleport using Map Marker", "Ok", "");
- }
- }
- case 1: ShowInteriorDialog(playerid); //To Interior
- 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
- }
- }
- else ShowPlayerDialog(playerid, DIALOG_TOOLS, DIALOG_STYLE_LIST, ""COL_ORANGE"Useful Tools", tstr, "Select", "Back"); //Back
- }
- // ------------------------------------------------------------------------
- case DIALOG_AXIS:
- {
- if(response) //Teleport
- {
- new Float:X, Float:Y, Float:Z, str[256];
- if(!sscanf(inputtext, "p<,>fff", X, Y, Z))
- {
- SetPlayerInterior(playerid, 0);
- if(IsPlayerInAnyVehicle(playerid))
- {
- new v = GetPlayerVehicleID(playerid);
- SetVehiclePos(v, X, Y, Z);
- SetPlayerPos(playerid, X, Y, Z);
- PutPlayerInVehicle(playerid, v, 0);
- format(str, sizeof(str), ""TAG" Teleported to "COL_WHITE"[X: %0.2f | Y: %0.2f | Z: %0.2f]", X, Y, Z);
- SCM(playerid, -1, str);
- }
- else
- {
- SetPlayerPos(playerid, X, Y, Z);
- format(str, sizeof(str), ""TAG" Teleported to "COL_WHITE"[X: %0.2f | Y: %0.2f | Z: %0.2f]", X, Y, Z);
- SCM(playerid, -1, str);
- }
- }
- 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");
- }
- else ShowPlayerDialog(playerid, DIALOG_TELE, DIALOG_STYLE_LIST, ""COL_WHITE"Teleport", telestr, "Select", "Back");
- }
- // ------------------------------------------------------------------------
- case DIALOG_INTER:
- {
- if(response) //Teleport
- {
- new arrayid = listitem, string[128];
- SetPlayerPos(playerid, InteriorDialogData[arrayid][0], InteriorDialogData[arrayid][1], InteriorDialogData[arrayid][2]);
- SetPlayerInterior(playerid, InteriorDialogInteriors[arrayid][0]);
- SetPlayerFacingAngle(playerid, InteriorDialogData[arrayid][3]);
- format(string, sizeof(string), ""TAG" Teleported to "COL_WHITE"[%s]", InteriorDialogNames[arrayid][0]);
- SCM(playerid, -1, string);
- }
- else ShowPlayerDialog(playerid, DIALOG_TELE, DIALOG_STYLE_LIST, ""COL_WHITE"Teleport", telestr, "Select", "Back"); //Back
- }
- }
- return 0;
- }
- //------------------------------------------------------------------------------
- public OnRconLoginAttempt(ip[], password[], success)
- {
- if(success)
- {
- SetTimer("Welcome", 300, false);
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- function Welcome(playerid)
- {
- SendClientMessage(playerid, -1, ""TAG" You can use "COL_WHITE"/dmode "COL_BEGE"to toggle "COL_DRED"Debug Mode");
- return 1;
- }
- //================================= [Commands] =================================
- CMD:dmode(playerid)
- {
- if(JustSpawned[playerid] == false) return SCM(playerid, -1, ""TAG" You must be spawned before you can use "COL_DRED"Debug Mode");
- if(Allowed[playerid] == false && !IsPlayerAdmin(playerid)) return SCM(playerid, -1, ""TAG" You are not allowed to enter in "COL_DRED"Debug Mode");
- if(IsDebugging[playerid] == false)
- {
- ShowDebugBar(playerid);
- SCM(playerid, -1, ""TAG" Debug Mode: "COL_GREEN"Enabled");
- SCM(playerid, -1, ""TAG" Use '"COL_WHITE"/dpanel | /dp"COL_BEGE"' to open the "COL_GREY"Access Panel");
- return 1;
- }
- if(IsDebugging[playerid] == true)
- {
- HideDebugInfo(playerid);
- HideDebugBar(playerid);
- TogglePlayerControllable(playerid, true);
- Frozen[playerid] = false;
- Teleport[playerid] = false;
- SCM(playerid, -1, ""TAG" Debug Mode: "COL_RED"Disabled");
- return 1;
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- CMD:dpanel(playerid)
- {
- if(IsDebugging[playerid] == false) return SCM(playerid, -1, ""TAG" You must enable Debug Mode first, '"COL_WHITE"/dmode"COL_BEGE"'");
- new ostr[250];
- strcat(ostr, ""COL_GREEN"Spawn/Change\n"COL_ORANGE"Useful Tools\n"COL_RED"Settings");
- ShowPlayerDialog(playerid, DIALOG_PANEL, DIALOG_STYLE_LIST, ""COL_DRED"Debug Mode "COL_WHITE"|| "COL_GREY"Access Panel", ostr, "Select", "Close");
- return 1;
- }
- CMD:dp(playerid) return cmd_dpanel(playerid);
- //================================= [Stocks] ===================================
- stock ShowDebugBar(playerid)
- {
- TextDrawShowForPlayer(playerid, Textdraw0);
- TextDrawShowForPlayer(playerid, Textdraw1);
- IsDebugging[playerid] = true;
- return 1;
- }
- //------------------------------------------------------------------------------
- stock HideDebugBar(playerid)
- {
- TextDrawHideForPlayer(playerid, Textdraw0);
- TextDrawHideForPlayer(playerid, Textdraw1);
- IsDebugging[playerid] = false;
- return 1;
- }
- //------------------------------------------------------------------------------
- stock CreateDebugInfo(playerid)
- {
- Textdraw7[playerid] = TextDrawCreate(494.000000, 127.000000, "Health: 100%");
- TextDrawBackgroundColor(Textdraw7[playerid], 255);
- TextDrawFont(Textdraw7[playerid], 1);
- TextDrawLetterSize(Textdraw7[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw7[playerid], -4652801);
- TextDrawSetOutline(Textdraw7[playerid], 1);
- TextDrawSetProportional(Textdraw7[playerid], 1);
- Textdraw8[playerid] = TextDrawCreate(494.000000, 138.000000, "Armour: 100%");
- TextDrawBackgroundColor(Textdraw8[playerid], 255);
- TextDrawFont(Textdraw8[playerid], 1);
- TextDrawLetterSize(Textdraw8[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw8[playerid], -4652801);
- TextDrawSetOutline(Textdraw8[playerid], 1);
- TextDrawSetProportional(Textdraw8[playerid], 1);
- Textdraw9[playerid] = TextDrawCreate(494.000000, 150.000000, "Weapon: 39/Stachel Charge");
- TextDrawBackgroundColor(Textdraw9[playerid], 255);
- TextDrawFont(Textdraw9[playerid], 1);
- TextDrawLetterSize(Textdraw9[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw9[playerid], -4652801);
- TextDrawSetOutline(Textdraw9[playerid], 1);
- TextDrawSetProportional(Textdraw9[playerid], 1);
- Textdraw10[playerid] = TextDrawCreate(494.000000, 162.000000, "Skin: 0");
- TextDrawBackgroundColor(Textdraw10[playerid], 255);
- TextDrawFont(Textdraw10[playerid], 1);
- TextDrawLetterSize(Textdraw10[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw10[playerid], -4652801);
- TextDrawSetOutline(Textdraw10[playerid], 1);
- TextDrawSetProportional(Textdraw10[playerid], 1);
- Textdraw12[playerid] = TextDrawCreate(495.000000, 179.000000, "Position X: 00.000");
- TextDrawBackgroundColor(Textdraw12[playerid], 255);
- TextDrawFont(Textdraw12[playerid], 1);
- TextDrawLetterSize(Textdraw12[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw12[playerid], 1270415615);
- TextDrawSetOutline(Textdraw12[playerid], 1);
- TextDrawSetProportional(Textdraw12[playerid], 1);
- Textdraw13[playerid] = TextDrawCreate(495.000000, 191.000000, "Position Y: 00.000");
- TextDrawBackgroundColor(Textdraw13[playerid], 255);
- TextDrawFont(Textdraw13[playerid], 1);
- TextDrawLetterSize(Textdraw13[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw13[playerid], 1270415615);
- TextDrawSetOutline(Textdraw13[playerid], 1);
- TextDrawSetProportional(Textdraw13[playerid], 1);
- Textdraw14[playerid] = TextDrawCreate(495.000000, 202.000000, "Position Z: 00.000");
- TextDrawBackgroundColor(Textdraw14[playerid], 255);
- TextDrawFont(Textdraw14[playerid], 1);
- TextDrawLetterSize(Textdraw14[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw14[playerid], 1270415615);
- TextDrawSetOutline(Textdraw14[playerid], 1);
- TextDrawSetProportional(Textdraw14[playerid], 1);
- Textdraw15[playerid] = TextDrawCreate(494.000000, 214.000000, "Facing Angle: 00.000");
- TextDrawBackgroundColor(Textdraw15[playerid], 255);
- TextDrawFont(Textdraw15[playerid], 1);
- TextDrawLetterSize(Textdraw15[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw15[playerid], 1270415615);
- TextDrawSetOutline(Textdraw15[playerid], 1);
- TextDrawSetProportional(Textdraw15[playerid], 1);
- Textdraw17[playerid] = TextDrawCreate(493.000000, 232.000000, "A-Lib: CJanimations");
- TextDrawBackgroundColor(Textdraw17[playerid], 255);
- TextDrawFont(Textdraw17[playerid], 1);
- TextDrawLetterSize(Textdraw17[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw17[playerid], -12189441);
- TextDrawSetOutline(Textdraw17[playerid], 1);
- TextDrawSetProportional(Textdraw17[playerid], 1);
- Textdraw18[playerid] = TextDrawCreate(493.000000, 244.000000, "A-Name: cj_running_anim_023");
- TextDrawBackgroundColor(Textdraw18[playerid], 255);
- TextDrawFont(Textdraw18[playerid], 1);
- TextDrawLetterSize(Textdraw18[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw18[playerid], -12189441);
- TextDrawSetOutline(Textdraw18[playerid], 1);
- TextDrawSetProportional(Textdraw18[playerid], 1);
- Textdraw19[playerid] = TextDrawCreate(493.000000, 256.000000, "A-Index: 0");
- TextDrawBackgroundColor(Textdraw19[playerid], 255);
- TextDrawFont(Textdraw19[playerid], 1);
- TextDrawLetterSize(Textdraw19[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw19[playerid], -12189441);
- TextDrawSetOutline(Textdraw19[playerid], 1);
- TextDrawSetProportional(Textdraw19[playerid], 1);
- Textdraw20[playerid] = TextDrawCreate(493.000000, 268.000000, "Special Action: 0");
- TextDrawBackgroundColor(Textdraw20[playerid], 255);
- TextDrawFont(Textdraw20[playerid], 1);
- TextDrawLetterSize(Textdraw20[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw20[playerid], -12189441);
- TextDrawSetOutline(Textdraw20[playerid], 1);
- TextDrawSetProportional(Textdraw20[playerid], 1);
- Textdraw22[playerid] = TextDrawCreate(494.000000, 288.000000, "Name: FailerZ");
- TextDrawBackgroundColor(Textdraw22[playerid], 255);
- TextDrawFont(Textdraw22[playerid], 1);
- TextDrawLetterSize(Textdraw22[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw22[playerid], 8912895);
- TextDrawSetOutline(Textdraw22[playerid], 1);
- TextDrawSetProportional(Textdraw22[playerid], 1);
- Textdraw23[playerid] = TextDrawCreate(494.000000, 300.000000, "ID: 0");
- TextDrawBackgroundColor(Textdraw23[playerid], 255);
- TextDrawFont(Textdraw23[playerid], 1);
- TextDrawLetterSize(Textdraw23[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw23[playerid], 8912895);
- TextDrawSetOutline(Textdraw23[playerid], 1);
- TextDrawSetProportional(Textdraw23[playerid], 1);
- Textdraw24[playerid] = TextDrawCreate(494.000000, 313.000000, "Packetloss: 0%");
- TextDrawBackgroundColor(Textdraw24[playerid], 255);
- TextDrawFont(Textdraw24[playerid], 1);
- TextDrawLetterSize(Textdraw24[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw24[playerid], 8912895);
- TextDrawSetOutline(Textdraw24[playerid], 1);
- TextDrawSetProportional(Textdraw24[playerid], 1);
- Textdraw26[playerid] = TextDrawCreate(494.000000, 332.000000, "Date: 2/25/2014");
- TextDrawBackgroundColor(Textdraw26[playerid], 255);
- TextDrawFont(Textdraw26[playerid], 1);
- TextDrawLetterSize(Textdraw26[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw26[playerid], -1442775041);
- TextDrawSetOutline(Textdraw26[playerid], 1);
- TextDrawSetProportional(Textdraw26[playerid], 1);
- Textdraw27[playerid] = TextDrawCreate(494.000000, 344.000000, "Time: 11:00:00");
- TextDrawBackgroundColor(Textdraw27[playerid], 255);
- TextDrawFont(Textdraw27[playerid], 1);
- TextDrawLetterSize(Textdraw27[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw27[playerid], -1442775041);
- TextDrawSetOutline(Textdraw27[playerid], 1);
- TextDrawSetProportional(Textdraw27[playerid], 1);
- Textdraw29[playerid] = TextDrawCreate(494.000000, 362.000000, "Virtul World: 0");
- TextDrawBackgroundColor(Textdraw29[playerid], 255);
- TextDrawFont(Textdraw29[playerid], 1);
- TextDrawLetterSize(Textdraw29[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw29[playerid], -16727041);
- TextDrawSetOutline(Textdraw29[playerid], 1);
- TextDrawSetProportional(Textdraw29[playerid], 1);
- Textdraw30[playerid] = TextDrawCreate(494.000000, 373.000000, "Interior: 0");
- TextDrawBackgroundColor(Textdraw30[playerid], 255);
- TextDrawFont(Textdraw30[playerid], 1);
- TextDrawLetterSize(Textdraw30[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw30[playerid], -16727041);
- TextDrawSetOutline(Textdraw30[playerid], 1);
- TextDrawSetProportional(Textdraw30[playerid], 1);
- Textdraw32[playerid] = TextDrawCreate(494.000000, 391.000000, "Vehicle ID: 0");
- TextDrawBackgroundColor(Textdraw32[playerid], 255);
- TextDrawFont(Textdraw32[playerid], 1);
- TextDrawLetterSize(Textdraw32[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw32[playerid], 1852731135);
- TextDrawSetOutline(Textdraw32[playerid], 1);
- TextDrawSetProportional(Textdraw32[playerid], 1);
- Textdraw33[playerid] = TextDrawCreate(494.000000, 402.000000, "Vehicle Model: 0");
- TextDrawBackgroundColor(Textdraw33[playerid], 255);
- TextDrawFont(Textdraw33[playerid], 1);
- TextDrawLetterSize(Textdraw33[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw33[playerid], 1852731135);
- TextDrawSetOutline(Textdraw33[playerid], 1);
- TextDrawSetProportional(Textdraw33[playerid], 1);
- Textdraw34[playerid] = TextDrawCreate(494.000000, 413.000000, "Vehicle Health: 0");
- TextDrawBackgroundColor(Textdraw34[playerid], 255);
- TextDrawFont(Textdraw34[playerid], 1);
- TextDrawLetterSize(Textdraw34[playerid], 0.280000, 1.099999);
- TextDrawColor(Textdraw34[playerid], 1852731135);
- TextDrawSetOutline(Textdraw34[playerid], 1);
- TextDrawSetProportional(Textdraw34[playerid], 1);
- return 1;
- }
- //------------------------------------------------------------------------------
- stock DestroyDebugInfo(playerid)
- {
- TextDrawDestroy(Textdraw7[playerid]);
- TextDrawDestroy(Textdraw8[playerid]);
- TextDrawDestroy(Textdraw9[playerid]);
- TextDrawDestroy(Textdraw10[playerid]);
- TextDrawDestroy(Textdraw12[playerid]);
- TextDrawDestroy(Textdraw13[playerid]);
- TextDrawDestroy(Textdraw14[playerid]);
- TextDrawDestroy(Textdraw15[playerid]);
- TextDrawDestroy(Textdraw17[playerid]);
- TextDrawDestroy(Textdraw18[playerid]);
- TextDrawDestroy(Textdraw19[playerid]);
- TextDrawDestroy(Textdraw20[playerid]);
- TextDrawDestroy(Textdraw22[playerid]);
- TextDrawDestroy(Textdraw23[playerid]);
- TextDrawDestroy(Textdraw24[playerid]);
- TextDrawDestroy(Textdraw26[playerid]);
- TextDrawDestroy(Textdraw27[playerid]);
- TextDrawDestroy(Textdraw29[playerid]);
- TextDrawDestroy(Textdraw30[playerid]);
- TextDrawDestroy(Textdraw32[playerid]);
- TextDrawDestroy(Textdraw33[playerid]);
- TextDrawDestroy(Textdraw34[playerid]);
- return 1;
- }
- //------------------------------------------------------------------------------
- stock ShowDebugInfo(playerid)
- {
- TextDrawShowForPlayer(playerid, Textdraw2);
- TextDrawShowForPlayer(playerid, Textdraw3);
- TextDrawShowForPlayer(playerid, Textdraw4);
- TextDrawShowForPlayer(playerid, Textdraw5);
- TextDrawShowForPlayer(playerid, Textdraw6);
- TextDrawShowForPlayer(playerid, Textdraw7[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw8[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw9[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw10[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw11);
- TextDrawShowForPlayer(playerid, Textdraw12[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw13[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw14[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw15[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw16);
- TextDrawShowForPlayer(playerid, Textdraw17[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw18[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw19[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw20[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw21);
- TextDrawShowForPlayer(playerid, Textdraw22[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw23[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw24[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw25);
- TextDrawShowForPlayer(playerid, Textdraw26[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw27[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw28);
- TextDrawShowForPlayer(playerid, Textdraw29[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw30[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw31);
- TextDrawShowForPlayer(playerid, Textdraw32[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw33[playerid]);
- TextDrawShowForPlayer(playerid, Textdraw34[playerid]);
- IsUsingDebugInfo[playerid] = true;
- return 1;
- }
- //------------------------------------------------------------------------------
- stock HideDebugInfo(playerid)
- {
- TextDrawHideForPlayer(playerid, Textdraw2);
- TextDrawHideForPlayer(playerid, Textdraw3);
- TextDrawHideForPlayer(playerid, Textdraw4);
- TextDrawHideForPlayer(playerid, Textdraw5);
- TextDrawHideForPlayer(playerid, Textdraw6);
- TextDrawHideForPlayer(playerid, Textdraw7[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw8[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw9[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw10[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw11);
- TextDrawHideForPlayer(playerid, Textdraw12[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw13[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw14[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw15[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw16);
- TextDrawHideForPlayer(playerid, Textdraw17[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw18[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw19[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw20[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw21);
- TextDrawHideForPlayer(playerid, Textdraw22[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw23[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw24[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw25);
- TextDrawHideForPlayer(playerid, Textdraw26[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw27[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw28);
- TextDrawHideForPlayer(playerid, Textdraw29[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw30[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw31);
- TextDrawHideForPlayer(playerid, Textdraw32[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw33[playerid]);
- TextDrawHideForPlayer(playerid, Textdraw34[playerid]);
- IsUsingDebugInfo[playerid] = false;
- return 1;
- }
- //------------------------------------------------------------------------------
- stock DestroyAllTextDraws()
- {
- TextDrawDestroy(Textdraw2);
- TextDrawDestroy(Textdraw3);
- TextDrawDestroy(Textdraw4);
- TextDrawDestroy(Textdraw5);
- TextDrawDestroy(Textdraw6);
- TextDrawDestroy(Textdraw11);
- TextDrawDestroy(Textdraw16);
- TextDrawDestroy(Textdraw21);
- TextDrawDestroy(Textdraw25);
- TextDrawDestroy(Textdraw28);
- TextDrawDestroy(Textdraw31);
- for(new i; i<GetMaxPlayers(); i++)
- {
- if(IsPlayerConnected(i))
- {
- DestroyDebugInfo(i);
- }
- }
- return 1;
- }
- //------------------------------------------------------------------------------
- stock ShowInteriorDialog(playerid)
- {
- new dialog_string[2000];
- for(new i = 0; i < sizeof(InteriorDialogNames); i++)
- {
- if(!i)
- {
- format(dialog_string, sizeof(dialog_string), InteriorDialogNames[i]);
- }
- else
- {
- format(dialog_string, sizeof(dialog_string), "%s\n%s", dialog_string, InteriorDialogNames[i]);
- }
- }
- return ShowPlayerDialog(playerid, DIALOG_INTER, DIALOG_STYLE_LIST, ""COL_WHITE"To Interior", dialog_string, "Teleport", "Back");
- }
Advertisement
Add Comment
Please, Sign In to add comment