Posted May 10, 2023 · Report post error 021: symbol already defined: "ac_GivePlayerWeapon" #include <a_samp> #define DEBUG #include <nex-ac_ru.lang> #include <nex-ac> Сам инклюд Спойлер //Nex-AC by Nexius v1.9.61 (0.3.7) #if defined _nex_ac_included #endinput #endif #define _nex_ac_included #tryinclude <a_samp> #if !defined FILTERSCRIPT #if !defined DEBUG #define DEBUG #endif #if !defined NO_SUSPICION_LOGS //#define NO_SUSPICION_LOGS #endif #if defined NO_SUSPICION_LOGS #pragma unused SUSPICION_1 #pragma unused SUSPICION_2 #endif #if !defined _nex_ac_lang_included #include <nex-ac_en.lang> //Localization #endif #define NEX_AC_VERSION "1.9.61" #define AC_SERVER_VERSION "0.3." #define AC_SERVER_OMP_VERSION "open.mp" #if !defined AC_CLIENT_VERSION #define AC_CLIENT_VERSION "0.3" #endif #if !defined AC_USE_CONFIG_FILES #define AC_USE_CONFIG_FILES true #endif #if !defined AUTOSAVE_SETTINGS_IN_CONFIG #define AUTOSAVE_SETTINGS_IN_CONFIG false #endif #if AC_USE_CONFIG_FILES #if !defined AC_CONFIG_FILE #define AC_CONFIG_FILE "nex-ac_settings.cfg" #endif #if !defined AC_NOP_CONFIG_FILE #define AC_NOP_CONFIG_FILE "nex-ac_nop_settings.cfg" #endif #else #pragma unused CFG_OPENING_ERROR #endif #if !defined AC_USE_AMMUNATIONS #define AC_USE_AMMUNATIONS true #endif #if !defined AC_USE_PICKUP_WEAPONS #define AC_USE_PICKUP_WEAPONS true #endif #if !defined AC_USE_RESTAURANTS #define AC_USE_RESTAURANTS true #endif #if !defined AC_USE_VENDING_MACHINES #define AC_USE_VENDING_MACHINES true #endif #if !defined AC_USE_TUNING_GARAGES #define AC_USE_TUNING_GARAGES true #endif #if !defined AC_USE_PAYNSPRAY #define AC_USE_PAYNSPRAY true #endif #if !defined AC_USE_CASINOS #define AC_USE_CASINOS true #endif #if !defined AC_USE_NPC #define AC_USE_NPC true #endif #if !defined AC_USE_QUERY #define AC_USE_QUERY true #endif #if !defined AC_USE_STATISTICS #define AC_USE_STATISTICS true #endif #if !AC_USE_STATISTICS #pragma unused STATS_STRING_1 #pragma unused STATS_STRING_2 #pragma unused STATS_STRING_3 #pragma unused STATS_STRING_4 #pragma unused STATS_STRING_5 #pragma unused STATS_STRING_6 #pragma unused STATS_STRING_7 #pragma unused STATS_STRING_8 #endif #if !defined AC_DEFAULT_COLOR #define AC_DEFAULT_COLOR -1 #endif #if !defined AC_MAX_CLASSES #define AC_MAX_CLASSES 320 #endif #if !defined AC_MAX_SKINS #define AC_MAX_SKINS 312 #endif #if !defined AC_MAX_CONNECTS_FROM_IP #define AC_MAX_CONNECTS_FROM_IP 1 #endif #if !defined AC_MAX_RCON_LOGIN_ATTEMPT #define AC_MAX_RCON_LOGIN_ATTEMPT 1 #endif #if !defined AC_MAX_MSGS_REC_DIFF #define AC_MAX_MSGS_REC_DIFF 800 #endif #if !defined AC_MAX_PING #define AC_MAX_PING 500 #endif #if !defined AC_MIN_TIME_RECONNECT #define AC_MIN_TIME_RECONNECT 12 //In seconds #endif #if !defined AC_SPEEDHACK_VEH_RESET_DELAY #define AC_SPEEDHACK_VEH_RESET_DELAY 3 //In seconds #endif #if !defined AC_MAX_NOP_WARNINGS #define AC_MAX_NOP_WARNINGS 8 #endif #if !defined AC_MAX_NOP_TIMER_WARNINGS #define AC_MAX_NOP_TIMER_WARNINGS 3 #endif #if !defined AC_MAX_PING_WARNINGS #define AC_MAX_PING_WARNINGS 8 #endif #if !defined AC_MAX_MONEY_WARNINGS #define AC_MAX_MONEY_WARNINGS 2 #endif #if !defined AC_MAX_AIR_WARNINGS #define AC_MAX_AIR_WARNINGS 4 #endif #if !defined AC_MAX_AIR_VEH_WARNINGS #define AC_MAX_AIR_VEH_WARNINGS 4 #endif #if !defined AC_MAX_SPEEDHACK_WARNINGS #define AC_MAX_SPEEDHACK_WARNINGS 4 #endif #if !defined AC_MAX_SPEEDHACK_VEH_WARNINGS #define AC_MAX_SPEEDHACK_VEH_WARNINGS (1 * AC_SPEEDHACK_VEH_RESET_DELAY) #endif #if !defined AC_MAX_FLYHACK_WARNINGS #define AC_MAX_FLYHACK_WARNINGS 2 #endif #if !defined AC_MAX_FLYHACK_BIKE_WARNINGS #define AC_MAX_FLYHACK_BIKE_WARNINGS 8 #endif #if !defined AC_MAX_FLYHACK_VEH_WARNINGS #define AC_MAX_FLYHACK_VEH_WARNINGS 4 #endif #if !defined AC_MAX_CARSHOT_WARNINGS #define AC_MAX_CARSHOT_WARNINGS 4 #endif #if !defined AC_MAX_GODMODE_WARNINGS #define AC_MAX_GODMODE_WARNINGS 3 #endif #if !defined AC_MAX_GODMODE_VEH_WARNINGS #define AC_MAX_GODMODE_VEH_WARNINGS 3 #endif #if !defined AC_MAX_FAKE_WEAPON_WARNINGS #define AC_MAX_FAKE_WEAPON_WARNINGS 2 #endif #if !defined AC_MAX_SILENT_AIM_WARNINGS #define AC_MAX_SILENT_AIM_WARNINGS 2 #endif #if !defined AC_MAX_PRO_AIM_WARNINGS #define AC_MAX_PRO_AIM_WARNINGS 2 #endif #if !defined AC_MAX_AFK_GHOST_WARNINGS #define AC_MAX_AFK_GHOST_WARNINGS 2 #endif #if !defined AC_MAX_RAPID_FIRE_WARNINGS #define AC_MAX_RAPID_FIRE_WARNINGS 16 #endif #if !defined AC_MAX_AUTO_C_WARNINGS #define AC_MAX_AUTO_C_WARNINGS 8 #endif #if !defined AC_MAX_TELEPORT_GLITCH_WARNINGS #define AC_MAX_TELEPORT_GLITCH_WARNINGS 1 #endif #if !defined AC_MAX_CJ_RUN_WARNINGS #define AC_MAX_CJ_RUN_WARNINGS 3 #endif #define ac_fpublic%0(%1) forward%0(%1); public%0(%1) #define ac_AbsoluteAngle(%0) ((floatround(%0, floatround_floor) % 360) + floatfract(%0)) #define ac_abs(%0) (((%0) < 0) ? (-(%0)) : ((%0))) //'ac_ACAllow' contains the default settings that will be set if no config file is found //Don't change these values if you already have 'scriptfiles\nex-ac_settings.cfg' static bool:ac_ACAllow[] = { true, //0 Anti-AirBreak (onfoot) true, //1 Anti-AirBreak (in vehicle) true, //2 Anti-teleport hack (onfoot) true, //3 Anti-teleport hack (in vehicle) true, //4 Anti-teleport hack (into/between vehicles) true, //5 Anti-teleport hack (vehicle to player) true, //6 Anti-teleport hack (pickups) true, //7 Anti-FlyHack (onfoot) true, //8 Anti-FlyHack (in vehicle) true, //9 Anti-SpeedHack (onfoot) true, //10 Anti-SpeedHack (in vehicle) true, //11 Anti-Health hack (in vehicle) true, //12 Anti-Health hack (onfoot) true, //13 Anti-Armour hack true, //14 Anti-Money hack true, //15 Anti-Weapon hack true, //16 Anti-Ammo hack (add) true, //17 Anti-Ammo hack (infinite) true, //18 Anti-Special actions hack true, //19 Anti-GodMode from bullets (onfoot) true, //20 Anti-GodMode from bullets (in vehicle) true, //21 Anti-Invisible hack true, //22 Anti-lagcomp-spoof true, //23 Anti-Tuning hack false, //24 Anti-Parkour mod true, //25 Anti-Quick turn true, //26 Anti-Rapid fire true, //27 Anti-FakeSpawn true, //28 Anti-FakeKill true, //29 Anti-Pro Aim true, //30 Anti-CJ run true, //31 Anti-CarShot true, //32 Anti-CarJack false, //33 Anti-UnFreeze true, //34 Anti-AFK Ghost true, //35 Anti-Full Aiming false, //36 Anti-Fake NPC true, //37 Anti-Reconnect true, //38 Anti-High ping true, //39 Anti-Dialog hack true, //40 Protection from sandbox true, //41 Protection from invalid version true, //42 Anti-Rcon hack true, //43 Anti-Tuning crasher true, //44 Anti-Invalid seat crasher true, //45 Anti-Dialog crasher true, //46 Anti-Attached object crasher true, //47 Anti-Weapon Crasher true, //48 Protection from connection flood in one slot true, //49 Anti-callback functions flood true, //50 Anti-flood by seat changing true, //51 Anti-DoS true //52 Anti-NOPs }, bool:ac_NOPAllow[] = { true, //0 Anti-NOP GivePlayerWeapon true, //1 Anti-NOP SetPlayerAmmo true, //2 Anti-NOP SetPlayerInterior true, //3 Anti-NOP SetPlayerHealth true, //4 Anti-NOP SetVehicleHealth true, //5 Anti-NOP SetPlayerArmour true, //6 Anti-NOP SetPlayerSpecialAction true, //7 Anti-NOP PutPlayerInVehicle true, //8 Anti-NOP TogglePlayerSpectating true, //9 Anti-NOP SpawnPlayer true, //10 Anti-NOP SetPlayerPos true //11 Anti-NOP RemovePlayerFromVehicle }; static const ac_Mtfc[][] = { {120, 8}, //0 OnDialogResponse {800, 2}, //1 OnEnterExitModShop {250, 8}, //2 OnPlayerClickMap {400, 5}, //3 OnPlayerClickPlayer {50, 11}, //4 OnPlayerClickTextDraw {400, 8}, //5 OnPlayerCommandText {50, 8}, //6 OnPlayerEnterVehicle {50, 11}, //7 OnPlayerExitVehicle {50, 11}, //8 OnPlayerPickUpPickup {150, 8}, //9 OnPlayerRequestClass {120, 8}, //10 OnPlayerSelectedMenuRow {600, 8}, //11 OnPlayerStateChange {450, 2}, //12 OnVehicleMod {450, 2}, //13 OnVehiclePaintjob {450, 2}, //14 OnVehicleRespray {300, 1}, //15 OnVehicleDeath {450, 8}, //16 OnPlayerText {150, 8}, //17 OnPlayerEnterCheckpoint {150, 8}, //18 OnPlayerLeaveCheckpoint {150, 5}, //19 OnPlayerRequestSpawn {120, 8}, //20 OnPlayerExitedMenu {150, 8}, //21 OnPlayerEnterRaceCheckpoint {150, 8}, //22 OnPlayerLeaveRaceCheckpoint {50, 11}, //23 OnPlayerClickPlayerTextDraw {60, 9}, //24 OnVehicleDamageStatusUpdate {150, 8}, //25 OnVehicleSirenStateChange {150, 5}, //26 OnPlayerSelectObject {50, 11} //27 Cross-public }, ac_wSlot[] = { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 10, 10, 10, 10, 10, 10, 8, 8, 8, 8, 8, 8, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 4, 6, 6, 7, 7, 7, 7, 8, 12, 9, 9, 9, 11, 11, 11 }, ac_vType[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 3, 6, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2, 5, 7, 0, 0, 3, 3, 3, 0, 0, 0, 0, 0, 1, 5, 5, 5, 0, 0, 0, 0, 5, 2, 0, 5, 3, 3, 0, 0, 1, 0, 0, 0, 0, 4, 0, 0, 3, 0, 0, 2, 2, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 8, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 9, 9, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 5, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 1, 1, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, #if AC_USE_PICKUP_WEAPONS ac_wModel[] = { 0, 331, 333, 334, 335, 336, 337, 338, 339, 341, 321, 322, 323, 324, 325, 326, 342, 343, 344, 345, 345, 345, 346, 347, 348, 349, 350, 351, 352, 353, 355, 356, 372, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 371 }, ac_pAmmo[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 8, 8, 8, 8, 4, 4, 30, 10, 10, 15, 10, 10, 60, 60, 80, 80, 60, 20, 10, 4, 3, 100, 500, 5, 1, 500, 500, 36, 0, 0, 1 }, #endif #if AC_USE_TUNING_GARAGES ac_cPrice[] = { 400, 550, 200, 250, 100, 150, 80, 500, 500, 200, 1000, 220, 250, 100, 400, 500, 200, 500, 350, 300, 250, 200, 150, 350, 50, 1000, 480, 480, 770, 680, 370, 370, 170, 120, 790, 150, 500, 690, 190, 390, 500, 390, 1000, 500, 500, 510, 710, 670, 530, 810, 620, 670, 530, 130, 210, 230, 520, 430, 620, 720, 530, 180, 550, 430, 830, 850, 750, 250, 200, 550, 450, 550, 450, 1100, 1030, 980, 1560, 1620, 1200, 1030, 900, 1230, 820, 1560, 1350, 770, 100, 1500, 150, 650, 450, 100, 750, 350, 450, 350, 1000, 620, 1140, 1000, 940, 780, 830, 3250, 1610, 1540, 780, 780, 780, 1610, 1540, 0, 0, 3340, 3250, 2130, 2050, 2040, 780, 940, 780, 940, 780, 860, 780, 1120, 3340, 3250, 3340, 1650, 3380, 3290, 1590, 830, 800, 1500, 1000, 800, 580, 470, 870, 980, 150, 150, 100, 100, 490, 600, 890, 1000, 1090, 840, 910, 1200, 1030, 1030, 920, 930, 550, 1050, 1050, 950, 650, 450, 550, 850, 950, 850, 950, 970, 880, 990, 900, 950, 1000, 900, 1000, 900, 2050, 2150, 2130, 2050, 2130, 2040, 2150, 2040, 2095, 2175, 2080, 2200, 1200, 1040, 940, 1100 }, #endif #if AC_USE_AMMUNATIONS ac_AmmuNationInfo[][] = { {200, 30}, {600, 30}, {1200, 15}, {600, 15}, {800, 12}, {1000, 10}, {500, 60}, {2000, 90}, {3500, 120}, {4500, 150}, {300, 60} }, Float:ac_AmmuNations[][] = { {296.3255, -38.304, 1001.5156}, {295.7595, -80.5579, 1001.5156}, {290.1898, -109.482, 1001.5156}, {312.6785, -165.5487, 999.6016}, {308.2072, -141.0583, 999.6016} }, #endif #if AC_USE_RESTAURANTS Float:ac_Restaurants[][] = { {374.0, -119.641, 1001.4922}, {368.789, -6.857, 1001.8516}, {375.566, -68.222, 1001.5151} }, #endif #if AC_USE_PAYNSPRAY Float:ac_PayNSpray[][] = { {2064.2842, -1831.4736, 13.5469}, {-2425.7822, 1021.1392, 50.3977}, {-1420.5195, 2584.2305, 55.8433}, {487.6401, -1739.9479, 11.1385}, {1024.8651, -1024.087, 32.1016}, {-1904.7019, 284.5968, 41.0469}, {1975.2384, 2162.5088, 11.0703}, {2393.4456, 1491.5537, 10.5616}, {720.0854, -455.2807, 16.3359}, {-99.9417, 1117.9048, 19.7417} }, #endif #if AC_USE_VENDING_MACHINES Float:ac_vMachines[][] = { {-862.82, 1536.6, 21.98}, {2271.72, -76.46, 25.96}, {1277.83, 372.51, 18.95}, {662.42, -552.16, 15.71}, {201.01, -107.61, 0.89}, {-253.74, 2597.95, 62.24}, {-253.74, 2599.75, 62.24}, {-76.03, 1227.99, 19.12}, {-14.7, 1175.35, 18.95}, {-1455.11, 2591.66, 55.23}, {2352.17, -1357.15, 23.77}, {2325.97, -1645.13, 14.21}, {2139.51, -1161.48, 23.35}, {2153.23, -1016.14, 62.23}, {1928.73, -1772.44, 12.94}, {1154.72, -1460.89, 15.15}, {2480.85, -1959.27, 12.96}, {2060.11, -1897.64, 12.92}, {1729.78, -1943.04, 12.94}, {1634.1, -2237.53, 12.89}, {1789.21, -1369.26, 15.16}, {-2229.18, 286.41, 34.7}, {2319.99, 2532.85, 10.21}, {2845.72, 1295.04, 10.78}, {2503.14, 1243.69, 10.21}, {2647.69, 1129.66, 10.21}, {-2420.21, 984.57, 44.29}, {-2420.17, 985.94, 44.29}, {2085.77, 2071.35, 10.45}, {1398.84, 2222.6, 10.42}, {1659.46, 1722.85, 10.21}, {1520.14, 1055.26, 10.0}, {-1980.78, 142.66, 27.07}, {-2118.96, -423.64, 34.72}, {-2118.61, -422.41, 34.72}, {-2097.27, -398.33, 34.72}, {-2092.08, -490.05, 34.72}, {-2063.27, -490.05, 34.72}, {-2005.64, -490.05, 34.72}, {-2034.46, -490.05, 34.72}, {-2068.56, -398.33, 34.72}, {-2039.85, -398.33, 34.72}, {-2011.14, -398.33, 34.72}, {-1350.11, 492.28, 10.58}, {-1350.11, 493.85, 10.58}, {2222.36, 1602.64, 1000.06}, {2222.2, 1606.77, 1000.05}, {2155.9, 1606.77, 1000.05}, {2155.84, 1607.87, 1000.06}, {2209.9, 1607.19, 1000.05}, {2202.45, 1617.0, 1000.06}, {2209.24, 1621.21, 1000.06}, {2576.7, -1284.43, 1061.09}, {330.67, 178.5, 1020.07}, {331.92, 178.5, 1020.07}, {350.9, 206.08, 1008.47}, {361.56, 158.61, 1008.47}, {371.59, 178.45, 1020.07}, {374.89, 188.97, 1008.47}, {-19.03, -57.83, 1003.63}, {-36.14, -57.87, 1003.63}, {316.87, -140.35, 998.58}, {2225.2, -1153.42, 1025.9}, {-15.1, -140.22, 1003.63}, {-16.53, -140.29, 1003.63}, {-35.72, -140.22, 1003.63}, {373.82, -178.14, 1000.73}, {379.03, -178.88, 1000.73}, {495.96, -24.32, 1000.73}, {500.56, -1.36, 1000.73}, {501.82, -1.42, 1000.73}, {-33.87, -186.76, 1003.63}, {-32.44, -186.69, 1003.63}, {-16.11, -91.64, 1003.63}, {-17.54, -91.71, 1003.63} }, #endif #if AC_USE_CASINOS Float:ac_Casinos[][] = { {2241.2878, 1617.1624, 1006.1797, 2.0}, {2240.9736, 1604.6592, 1006.1797, 6.0}, {2242.5427, 1592.8726, 1006.1836, 6.0}, {2230.2124, 1592.1426, 1006.1832, 6.0}, {2230.4717, 1604.484, 1006.186, 6.0}, {2230.3298, 1616.9272, 1006.1799, 3.0}, {2251.9407, 1586.1736, 1006.186, 1.0}, {2218.6785, 1587.3448, 1006.1749, 1.0}, {2219.2773, 1591.7467, 1006.1867, 1.0}, {2218.5408, 1589.3229, 1006.184, 1.0}, {2218.6477, 1593.6279, 1006.1797, 1.0}, {2221.926, 1603.8285, 1006.1797, 1.0}, {2218.5095, 1603.8385, 1006.1797, 1.0}, {2219.9597, 1603.9216, 1006.1797, 1.0}, {2216.3054, 1603.7996, 1006.1819, 1.0}, {2218.731, 1619.8046, 1006.1794, 1.0}, {2218.9407, 1617.8413, 1006.1821, 1.0}, {2218.668, 1615.4681, 1006.1797, 1.0}, {2218.6418, 1613.2629, 1006.1797, 1.0}, {2252.4272, 1589.8412, 1006.1797, 5.0}, {2252.4229, 1596.6169, 1006.1797, 5.0}, {2255.1565, 1608.8784, 1006.186, 1.0}, {2254.8496, 1610.8605, 1006.1797, 1.0}, {2255.2917, 1612.9167, 1006.1797, 1.0}, {2255.033, 1614.8892, 1006.1797, 1.0}, {2255.1213, 1616.8284, 1006.1797, 1.0}, {2255.2161, 1618.8005, 1006.1797, 1.0}, {2268.5281, 1606.4894, 1006.1797, 1.0}, {2270.4922, 1606.8539, 1006.1797, 1.0}, {2272.5693, 1606.4473, 1006.1797, 1.0}, {2274.5391, 1607.0122, 1006.1797, 1.0}, {2271.8447, 1586.1633, 1006.1797, 1.0}, {2261.4844, 1586.1724, 1006.1797, 1.0}, {2257.4507, 1589.6555, 1006.1797, 5.0}, {2267.8994, 1589.8672, 1006.1797, 5.0}, {2262.8486, 1590.026, 1006.1797, 5.0}, {2272.6458, 1589.7704, 1006.1797, 5.0}, {2272.6533, 1596.5682, 1006.1797, 5.0}, {2270.4895, 1596.4606, 1006.1797, 5.0}, {2265.4441, 1596.4299, 1006.1797, 5.0}, {2260.0308, 1596.7987, 1006.1797, 5.0}, {2254.9907, 1596.241, 1006.1797, 5.0}, {1956.9524, 988.2533, 992.4688, 2.0}, {1961.6155, 993.0375, 992.4688, 2.0}, {1963.7998, 998.4406, 992.4745, 2.0}, {1936.2885, 987.1995, 992.4745, 2.0}, {1944.9768, 986.3937, 992.4688, 2.0}, {1940.7397, 990.9521, 992.4609, 2.0}, {1940.0966, 1005.8996, 992.4688, 6.0}, {1938.8785, 1014.1768, 992.4688, 6.0}, {1938.8811, 1021.4434, 992.4688, 6.0}, {1966.5975, 1006.6469, 992.4745, 6.0}, {1966.5979, 1014.1024, 992.4688, 6.0}, {1939.8351, 1029.912, 992.4688, 6.0}, {1956.854, 1047.3718, 992.4688, 6.0}, {1961.356, 1042.8112, 992.4688, 6.0}, {1963.811, 1037.1263, 992.4745, 6.0}, {1961.733, 1025.8929, 992.4688, 10.0}, {1961.708, 1010.3194, 992.4688, 10.0}, {1966.5989, 1029.7954, 992.4745, 6.0}, {1961.4139, 1017.8281, 992.4688, 10.0}, {1966.5985, 1021.7686, 992.4688, 6.0}, {1128.7106, -1.9779, 1000.6797, 1.0}, {1125.2388, 1.61, 1000.6797, 1.0}, {1125.1249, -5.0489, 1000.6797, 1.0}, {1127.4139, 3.0199, 1000.6797, 1.0}, {1135.0634, -3.8695, 1000.6797, 1.0}, {1135.0861, 0.6107, 1000.6797, 1.0}, {1132.8943, -1.7139, 1000.6797, 1.0}, {1125.3727, 3.0315, 1000.6797, 1.0}, {1119.0272, -1.4916, 1000.6924, 1.0} }, #endif ac_MaxPassengers[] = { 0x10331113, 0x11311131, 0x11331313, 0x80133301, 0x1381F110, 0x10311103, 0x10001F10, 0x11113311, 0x13113311, 0x31101100, 0x30002301, 0x11031311, 0x11111331, 0x10013111, 0x01131100, 0x11111110, 0x11100031, 0x11130111, 0x33113311, 0x11111101, 0x33101133, 0x10100510, 0x03133111, 0xFF11113F, 0x13330111, 0xFF131111, 0x0000FF3F }, ac_vMods[] = { 0x033C2700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x021A27FA, 0x00000000, 0x00FFFE00, 0x00000007, 0x0003C000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x023B2785, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02BC4703, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x03BA278A, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x028E078A, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02310744, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x0228073A, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02BD4701, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x023A2780, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x0228077A, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x027A27CA, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x0282278A, 0x00000000, 0x00FFFE00, 0x00000007, 0x0003C000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x023E07C0, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x03703730, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x031D2775, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02BE4788, 0x00000000, 0x00FFFE00, 0x00000007, 0x0003C000, 0x00000000, 0x02010771, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x029A0FCE, 0x00000000, 0x00FFFE00, 0x00000007, 0x0000C000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x03382700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x023F8795, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x029F078C, 0x00000000, 0x00FFFE00, 0x00000007, 0x0003C000, 0x00000000, 0x029627EA, 0x00000000, 0x00FFFE00, 0x00000007, 0x0003C000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x0236C782, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x029E1FCA, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0xFC000437, 0x00000000, 0x021C0000, 0x02000700, 0x00000000, 0x00FFFE00, 0x03FE6007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00001B87, 0x00000001, 0x01E00000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x039E07D2, 0x00000000, 0x00FFFE00, 0x00000007, 0x0003C000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x023CC700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00030000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x038E07D6, 0x00000000, 0x00FFFE00, 0x00000007, 0x0003C000, 0x00000000, 0x023D0709, 0x00000000, 0x00FFFE00, 0x00000007, 0x0000C000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x029E1F8A, 0x00000000, 0x00FFFE00, 0x00000007, 0x0003C000, 0x00000000, 0x029C077A, 0x00000000, 0x00FFFE00, 0x00000007, 0x0003C000, 0x00000000, 0x02BD076C, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0xFFFFFE00, 0x00000007, 0x00000000, 0x000001F8, 0x02000700, 0x00000000, 0x00FFFFFE, 0x00000007, 0xC0000000, 0x00002007, 0xFE000700, 0x00000003, 0x00FFFE00, 0x00000007, 0x00003C00, 0x00000600, 0xCE000700, 0xFF800000, 0x00FFFE01, 0x00000007, 0x3C000000, 0x00000000, 0x02000700, 0x000003FC, 0x00FFFE00, 0x00000007, 0x003C0000, 0x00001800, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x007FE000, 0x00FFFE00, 0x00000007, 0x03C00000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000047, 0x0000003E, 0x3C000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00001C00, 0x00FFFE00, 0x0000000F, 0x00000000, 0x0003C000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x000003C0, 0xC0000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x029607C2, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x03FFE7CF, 0x00000000, 0x00FFFE00, 0x00000007, 0x0003C000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x031727F1, 0x00000000, 0x00FFFE00, 0x00000007, 0x00030000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x025627F0, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x039E07C2, 0x00000000, 0x00FFFE00, 0x00000007, 0x0003C000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000, 0x02000700, 0x00000000, 0x00FFFE00, 0x00000007, 0x00000000, 0x00000000 }; static stock const Float:ac_wMinRange[] = { 25.0, 25.0, 25.0, 30.0, 25.0, 35.0, 25.0, 35.0, 40.0, 40.0, 25.0, 55.0, 50.0, 50.0, 50.0, 4.0, 65.0 }; enum acInfo { Float:acPosX, Float:acPosY, Float:acPosZ, Float:acDropJpX, Float:acDropJpY, Float:acDropJpZ, Float:acSpawnPosX, Float:acSpawnPosY, Float:acSpawnPosZ, Float:acSetVehHealth, Float:acLastPosX, Float:acLastPosY, Float:acSetPosX, Float:acSetPosY, Float:acSetPosZ, acCamMode, acSpeed, acHealth, acArmour, acMoney, acShotWeapon, acHoldWeapon, acLastWeapon, acEnterSeat, acEnterVeh, acKickVeh, acVeh, acSeat, acNextDialog, acDialog, acInt, acAnim, acSpecAct, acNextSpecAct, acLastSpecAct, acLastPickup, acReloadTick, acShotTick, acSpawnTick, acTimerTick, acSetPosTick, acUpdateTick, acEnterVehTick, acSpawnWeapon1, acSpawnWeapon2, acSpawnWeapon3, acSpawnAmmo1, acSpawnAmmo2, acSpawnAmmo3, acSpawnRes, acTimerID, acKickTimerID, acParachute, acIntRet, acKicked, acIp[16], acSet[12], acGtc[20], acWeapon[13], acAmmo[13], acSetWeapon[13], acGiveAmmo[13], acGtcSetWeapon[13], acGtcGiveAmmo[13], acNOPCount[12], acCheatCount[22], acCall[sizeof ac_Mtfc], acFloodCount[sizeof ac_Mtfc], bool:acNOPAllow[sizeof ac_NOPAllow], bool:acACAllow[sizeof ac_ACAllow], bool:acStuntBonus, bool:acModShop, bool:acUnFrozen, bool:acOnline, bool:acDeathRes, bool:acDmgRes, bool:acVehDmgRes, bool:acForceClass, bool:acClassRes, bool:acDead, bool:acTpToZ, bool:acIntEnterExits, bool:acSpec } enum acVehInfo { Float:acVelX, Float:acVelY, Float:acVelZ, Float:acTrVelX, Float:acTrVelY, Float:acTrVelZ, Float:acPosX, Float:acPosY, Float:acPosZ, Float:acSpawnPosX, Float:acSpawnPosY, Float:acSpawnPosZ, Float:acSpawnZAngle, Float:acPosDiff, Float:acZAngle, Float:acHealth, acLastSpeed, acSpeedDiff, acTrSpeedDiff, acDriver, acPanels, acDoors, acLights, acTires, acInt, acSpeed, acTrSpeed, acPaintJob, acLocked[MAX_PLAYERS], bool:acSpawned } enum acPickInfo { Float:acPosX, Float:acPosY, Float:acPosZ, acType, acWeapon } static Float:ac_ClassPos[AC_MAX_CLASSES][3], ac_ClassWeapon[AC_MAX_CLASSES][3], ac_ClassAmmo[AC_MAX_CLASSES][3], #if AC_USE_STATISTICS ac_sInfo[6], #endif ACInfo[MAX_PLAYERS][acInfo], ACVehInfo[MAX_VEHICLES][acVehInfo], ACPickInfo[MAX_PICKUPS][acPickInfo], #if defined GetLocalIP ac_BindAddr[10][16], #else ac_BindAddr[16], #endif bool:ac_IntEnterExits = true, bool:ac_StuntBonus = true, bool:ac_LagCompMode, #if !AC_USE_QUERY bool:ac_QueryEnable, #endif bool:ac_RconEnable, bool:ac_PedAnims; static stock bool:ac_VehFriendlyFire; forward ac_IsValidFloat(Float:value); forward Float:ac_GetVectorDist(Float:ac_x, Float:ac_y, Float:ac_z = 0.0); ac_fpublic ac_AddStaticVehicle(vehicleid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle) { ACVehInfo[vehicleid][acInt] = ACVehInfo[vehicleid][acSpeed] = ACVehInfo[vehicleid][acTires] = ACVehInfo[vehicleid][acLights] = ACVehInfo[vehicleid][acDoors] = ACVehInfo[vehicleid][acPanels] = ACVehInfo[vehicleid][acLastSpeed] = ACVehInfo[vehicleid][acSpeedDiff] = ACVehInfo[vehicleid][acTrSpeedDiff] = 0; ACVehInfo[vehicleid][acPaintJob] = 3; ACVehInfo[vehicleid][acHealth] = 1000.0; ACVehInfo[vehicleid][acSpawned] = true; ACVehInfo[vehicleid][acTrSpeed] = -1; ACVehInfo[vehicleid][acPosDiff] = ACVehInfo[vehicleid][acTrVelX] = ACVehInfo[vehicleid][acTrVelY] = ACVehInfo[vehicleid][acTrVelZ] = ACVehInfo[vehicleid][acVelX] = ACVehInfo[vehicleid][acVelY] = ACVehInfo[vehicleid][acVelZ] = 0.0; ACVehInfo[vehicleid][acSpawnPosX] = ACVehInfo[vehicleid][acPosX] = spawn_x; ACVehInfo[vehicleid][acSpawnPosY] = ACVehInfo[vehicleid][acPosY] = spawn_y; ACVehInfo[vehicleid][acSpawnPosZ] = ACVehInfo[vehicleid][acPosZ] = spawn_z; ACVehInfo[vehicleid][acSpawnZAngle] = ACVehInfo[vehicleid][acZAngle] = z_angle; ACVehInfo[vehicleid][acDriver] = INVALID_PLAYER_ID; return 1; } ac_fpublic ac_AddPlayerClass(classid, Float:spawn_x, Float:spawn_y, Float:spawn_z, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo) { if(0 <= classid < AC_MAX_CLASSES) { #undef AC_MAX_CLASSES ac_ClassPos[classid][0] = spawn_x; ac_ClassPos[classid][1] = spawn_y; ac_ClassPos[classid][2] = spawn_z; ac_ClassWeapon[classid][0] = weapon1; ac_ClassAmmo[classid][0] = weapon1_ammo; ac_ClassWeapon[classid][1] = weapon2; ac_ClassAmmo[classid][1] = weapon2_ammo; ac_ClassWeapon[classid][2] = weapon3; ac_ClassAmmo[classid][2] = weapon3_ammo; } return 1; } ac_fpublic ac_SetSpawnInfo(playerid, ac_team, ac_skin, Float:ac_x, Float:ac_y, Float:ac_z, Float:ac_rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo) { if(!SetSpawnInfo(playerid, ac_team, ac_skin, ac_x, ac_y, ac_z, ac_rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)) return 0; ACInfo[playerid][acSpawnPosX] = ac_x; ACInfo[playerid][acSpawnPosY] = ac_y; ACInfo[playerid][acSpawnPosZ] = ac_z; ACInfo[playerid][acSpawnWeapon1] = weapon1; ACInfo[playerid][acSpawnAmmo1] = weapon1_ammo; ACInfo[playerid][acSpawnWeapon2] = weapon2; ACInfo[playerid][acSpawnAmmo2] = weapon2_ammo; ACInfo[playerid][acSpawnWeapon3] = weapon3; ACInfo[playerid][acSpawnAmmo3] = weapon3_ammo; return 1; } ac_fpublic ac_CreatePickup(pickupid, modelid, type, Float:ac_X, Float:ac_Y, Float:ac_Z) { ACPickInfo[pickupid][acType] = 5; ACPickInfo[pickupid][acWeapon] = 0; #if AC_USE_PICKUP_WEAPONS switch(type) { case 2, 3, 15, 22: { switch(modelid) { case 370: ACPickInfo[pickupid][acType] = 1; case 1240: ACPickInfo[pickupid][acType] = 2; case 1242: ACPickInfo[pickupid][acType] = 3; case 321..326, 331, 333..339, 341..353, 355..369, 371, 372: { for(new ac_i = 46; ac_i >= 1; --ac_i) { if(ac_wModel[ac_i] == modelid) { ACPickInfo[pickupid][acType] = 4; ACPickInfo[pickupid][acWeapon] = ac_i; break; } } } } } } #endif ACPickInfo[pickupid][acPosX] = ac_X; ACPickInfo[pickupid][acPosY] = ac_Y; ACPickInfo[pickupid][acPosZ] = ac_Z; return 1; } #if AC_USE_PICKUP_WEAPONS\ && defined Streamer_SetIntData #if defined STREAMER_ENABLE_TAGS ac_fpublic ac_CreateDynamicPickup(STREAMER_TAG_PICKUP:pickupid, modelid, type) #else ac_fpublic ac_CreateDynamicPickup(pickupid, modelid, type) #endif { Streamer_SetIntData(STREAMER_TYPE_PICKUP, pickupid, E_STREAMER_EXTRA_ID, 0); switch(type) { case 2, 3, 15, 22: { switch(modelid) { case 370: Streamer_SetIntData(STREAMER_TYPE_PICKUP, pickupid, E_STREAMER_EXTRA_ID, 1); case 1240: Streamer_SetIntData(STREAMER_TYPE_PICKUP, pickupid, E_STREAMER_EXTRA_ID, 2); case 1242: Streamer_SetIntData(STREAMER_TYPE_PICKUP, pickupid, E_STREAMER_EXTRA_ID, 3); case 321..326, 331, 333..339, 341..353, 355..369, 371, 372: { for(new ac_i = 46; ac_i >= 1; --ac_i) { if(ac_wModel[ac_i] == modelid) { Streamer_SetIntData(STREAMER_TYPE_PICKUP, pickupid, E_STREAMER_EXTRA_ID, ac_i + 100); break; } } } } } } return 1; } #endif #if defined Streamer_UpdateEx stock ac_Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, type = -1, compensatedtime = -1, freezeplayer = 1) { if(!Streamer_UpdateEx(playerid, x, y, z, worldid, interiorid, type, compensatedtime, freezeplayer)) return 0; if(compensatedtime >= 0) { ACInfo[playerid][acSet][7] = 4; ACInfo[playerid][acTpToZ] = false; ACInfo[playerid][acNOPCount][10] = 0; ACInfo[playerid][acSetPosX] = x; ACInfo[playerid][acSetPosY] = y; ACInfo[playerid][acSetPosZ] = z; ACInfo[playerid][acSetPosTick] = ACInfo[playerid][acGtc][10] = GetTickCount() + 3850; #if defined FreezeSyncPacket if(!ACInfo[playerid][acUnFrozen]) FreezeSyncPacket(playerid, E_ALL_SYNC, false); #endif } return 1; } #if defined _ALS_Streamer_UpdateEx #undef Streamer_UpdateEx #else #define _ALS_Streamer_UpdateEx #endif #define Streamer_UpdateEx ac_Streamer_UpdateEx #endif #if defined GetPlayerVersion stock ac_GetPlayerVersion(playerid, version[], len) { new ac_i, ac_ret = GetPlayerVersion(playerid, version, len); for(ac_i = ac_ret - 1; ac_i >= 0; --ac_i) { if(version[ac_i] == '%') { strdel(version, ac_i, ac_i + 1); ac_ret--; } } while((ac_i = strfind(version, "~k~")) != -1) { strdel(version, ac_i, ac_i + 3); ac_ret -= 3; } return ac_ret; } #if defined _ALS_GetPlayerVersion #undef GetPlayerVersion #else #define _ALS_GetPlayerVersion #endif #define GetPlayerVersion ac_GetPlayerVersion #endif #if !defined PAWNRAKNET_INC_ stock ac_GetPlayerFacingAngle(playerid, &Float:ang) { if(!GetPlayerFacingAngle(playerid, ang)) return 0; if(!ac_IsValidFloat(ang)) ang = 0.0; ang = ac_AbsoluteAngle(ang); return 1; } #if defined _ALS_GetPlayerFacingAngle #undef GetPlayerFacingAngle #else #define _ALS_GetPlayerFacingAngle #endif #define GetPlayerFacingAngle ac_GetPlayerFacingAngle stock ac_GetVehicleZAngle(vehicleid, &Float:z_angle) { if(!GetVehicleZAngle(vehicleid, z_angle)) return 0; if(!ac_IsValidFloat(z_angle)) z_angle = 0.0; z_angle = ac_AbsoluteAngle(z_angle); #undef ac_AbsoluteAngle return 1; } #if defined _ALS_GetVehicleZAngle #undef GetVehicleZAngle #else #define _ALS_GetVehicleZAngle #endif #define GetVehicleZAngle ac_GetVehicleZAngle #endif ac_fpublic ac_DestroyVehicle(vehicleid) { if(!DestroyVehicle(vehicleid)) return 0; ACVehInfo[vehicleid][acSpawned] = false; new ac_gtc = GetTickCount() + 2650; #if defined foreach foreach(new ac_i : Player) { if(ACInfo[ac_i][acVeh] == vehicleid) ACInfo[ac_i][acSetPosTick] = ACInfo[ac_i][acGtc][10] = ac_gtc; } #else #if defined GetPlayerPoolSize for(new ac_i = GetPlayerPoolSize(); ac_i >= 0; --ac_i) #else for(new ac_i = MAX_PLAYERS - 1; ac_i >= 0; --ac_i) #endif { if(IsPlayerInVehicle(ac_i, vehicleid)) ACInfo[ac_i][acSetPosTick] = ACInfo[ac_i][acGtc][10] = ac_gtc; } #endif return 1; } ac_fpublic ac_DestroyPickup(pickupid) { if(!DestroyPickup(pickupid)) return 0; ACPickInfo[pickupid][acWeapon] = 0; ACPickInfo[pickupid][acType] = 0; #if AC_USE_PICKUP_WEAPONS #if defined foreach foreach(new ac_i : Player) { #else #if defined GetPlayerPoolSize for(new ac_i = GetPlayerPoolSize(); ac_i >= 0; --ac_i) #else for(new ac_i = MAX_PLAYERS - 1; ac_i >= 0; --ac_i) #endif { if(!IsPlayerConnected(ac_i)) continue; #endif if(ACInfo[ac_i][acLastPickup] == pickupid) ACInfo[ac_i][acLastPickup] = -1; } #endif return 1; } #if defined DestroyDynamicPickup #if defined STREAMER_ENABLE_TAGS ac_fpublic ac_DestroyDynamicPickup(STREAMER_TAG_PICKUP:pickupid) #else ac_fpublic ac_DestroyDynamicPickup(pickupid) #endif { if(!DestroyDynamicPickup(pickupid)) return 0; #if AC_USE_PICKUP_WEAPONS #if defined foreach foreach(new ac_i : Player) { #else #if defined GetPlayerPoolSize for(new ac_i = GetPlayerPoolSize(); ac_i >= 0; --ac_i) #else for(new ac_i = MAX_PLAYERS - 1; ac_i >= 0; --ac_i) #endif { if(!IsPlayerConnected(ac_i)) continue; #endif if(ACInfo[ac_i][acLastPickup] > MAX_PICKUPS && (ACInfo[ac_i][acLastPickup] - MAX_PICKUPS) == _:pickupid) ACInfo[ac_i][acLastPickup] = -1; } #endif return 1; } #endif ac_fpublic ac_DisableInteriorEnterExits() { ac_IntEnterExits = false; return DisableInteriorEnterExits(); } ac_fpublic ac_UsePlayerPedAnims() { ac_PedAnims = true; return UsePlayerPedAnims(); } #if defined EnableVehicleFriendlyFire ac_fpublic ac_EnableVehicleFriendlyFire() { ac_VehFriendlyFire = true; return EnableVehicleFriendlyFire(); } #endif ac_fpublic ac_EnableStuntBonusForAll(enable) { ac_StuntBonus = (enable != 0); #if defined foreach foreach(new ac_i : Player) ACInfo[ac_i][acStuntBonus] = ac_StuntBonus; #else #if defined GetPlayerPoolSize for(new ac_i = GetPlayerPoolSize(); ac_i >= 0; --ac_i) #else for(new ac_i = MAX_PLAYERS - 1; ac_i >= 0; --ac_i) #endif { if(IsPlayerConnected(ac_i)) ACInfo[ac_i][acStuntBonus] = ac_StuntBonus; } #endif return EnableStuntBonusForAll(enable); } ac_fpublic ac_EnableStuntBonusForPlayer(playerid, enable) { if(!EnableStuntBonusForPlayer(playerid, enable)) return 0; ACInfo[playerid][acStuntBonus] = (enable != 0); return 1; } ac_fpublic ac_ShowPlayerDialog(playerid, dialogid) { if(dialogid > 65535) dialogid %= 32768; ACInfo[playerid][acDialog] = dialogid; return 1; } ac_fpublic ac_fs_ShowPlayerDialog(playerid, dialogid) { if(dialogid > 65535) dialogid %= 32768; ACInfo[playerid][acNextDialog] = dialogid; return 1; } ac_fpublic ac_TogglePlayerControllable(playerid, toggle) { if(!TogglePlayerControllable(playerid, toggle)) return 0; ACInfo[playerid][acUnFrozen] = (toggle != 0); #if defined FreezeSyncPacket if(toggle) FreezeSyncPacket(playerid, E_ALL_SYNC, false); else if(ACInfo[playerid][acACAllow][33]) FreezeSyncPacket(playerid, E_ALL_SYNC, true); #endif return 1; } ac_fpublic ac_TogglePlayerSpectating(playerid, toggle) { if(!TogglePlayerSpectating(playerid, toggle)) return 0; if(ACInfo[playerid][acSpec] || ACInfo[playerid][acSet][5] != -1) { if(!toggle) { if(ACInfo[playerid][acDead]) ACInfo[playerid][acSet][6] = 4; else { ACInfo[playerid][acSet][3] = ACInfo[playerid][acSet][5] = ACInfo[playerid][acSet][7] = ACInfo[playerid][acSet][8] = ACInfo[playerid][acNextSpecAct] = -1; for(new ac_i = 12; ac_i >= 0; --ac_i) { ACInfo[playerid][acSetWeapon][ac_i] = -1; ACInfo[playerid][acGiveAmmo][ac_i] = -65535; } ACInfo[playerid][acForceClass] = ACInfo[playerid][acUnFrozen] = true; ACInfo[playerid][acSet][6] = 1; #if defined FreezeSyncPacket FreezeSyncPacket(playerid, E_ALL_SYNC, false); #endif } ACInfo[playerid][acSpawnRes]++; ACInfo[playerid][acSpec] = false; ACInfo[playerid][acSpawnTick] = ACInfo[playerid][acNOPCount][9] = 0; ACInfo[playerid][acGtc][12] = GetTickCount() + 2650; } } else if(toggle) { ACInfo[playerid][acSet][5] = 1; ACInfo[playerid][acNOPCount][8] = 0; ACInfo[playerid][acGtc][11] = GetTickCount() + 2650; } return 1; } ac_fpublic ac_SpawnPlayer(playerid) { if(!SpawnPlayer(playerid)) return 0; if(ACInfo[playerid][acDead]) ACInfo[playerid][acSet][6] = 5; else { ACInfo[playerid][acSet][3] = ACInfo[playerid][acSet][7] = ACInfo[playerid][acSet][8] = ACInfo[playerid][acNextSpecAct] = -1; for(new ac_i = 12; ac_i >= 0; --ac_i) { ACInfo[playerid][acSetWeapon][ac_i] = -1; ACInfo[playerid][acGiveAmmo][ac_i] = -65535; } ACInfo[playerid][acUnFrozen] = true; ACInfo[playerid][acSet][6] = 2; #if defined FreezeSyncPacket FreezeSyncPacket(playerid, E_ALL_SYNC, false); #endif } ACInfo[playerid][acSpawnRes]++; ACInfo[playerid][acSpawnTick] = ACInfo[playerid][acNOPCount][9] = 0; ACInfo[playerid][acGtc][12] = GetTickCount() + 2650; return 1; } ac_fpublic ac_SetPlayerHealth(playerid, Float:ac_health) { if(!SetPlayerHealth(playerid, ac_health)) return 0; if(ac_health < 0.0) ac_health = 0.0; ACInfo[playerid][acNOPCount][3] = 0; ACInfo[playerid][acSet][1] = floatround(ac_health, floatround_tozero); ACInfo[playerid][acGtc][2] = GetTickCount() + 2650; #if defined FreezeSyncPacket if(!ACInfo[playerid][acUnFrozen]) FreezeSyncPacket(playerid, E_ALL_SYNC, false); #endif return 1; } ac_fpublic ac_SetPlayerArmour(playerid, Float:ac_armour) { if(!SetPlayerArmour(playerid, ac_armour)) return 0; if(ac_armour < 0.0) ac_armour = 0.0; ACInfo[playerid][acNOPCount][5] = 0; ACInfo[playerid][acSet][2] = floatround(ac_armour, floatround_tozero); ACInfo[playerid][acGtc][4] = GetTickCount() + 2650; #if defined FreezeSyncPacket if(!ACInfo[playerid][acUnFrozen]) FreezeSyncPacket(playerid, E_ALL_SYNC, false); #endif return 1; } ac_fpublic ac_GivePlayerWeapon(playerid, weaponid, ac_ammo) { if(ac_IsValidWeapon(weaponid)) { new ac_s = ac_wSlot[weaponid]; ACInfo[playerid][acNOPCount][0] = ACInfo[playerid][acNOPCount][1] = 0; if(ac_IsWeaponSlotWithAmmo(ac_s)) { if(ac_IsAmmoSharingInSlot(ac_s) || (ACInfo[playerid][acSetWeapon][ac_s] == -1 ? ACInfo[playerid][acWeapon][ac_s] : ACInfo[playerid][acSetWeapon][ac_s]) == weaponid) { new ac_tmp; if(ACInfo[playerid][acGiveAmmo][ac_s] == -65535) ac_tmp = ACInfo[playerid][acAmmo][ac_s] + ac_ammo; else ac_tmp = ACInfo[playerid][acGiveAmmo][ac_s] + ac_ammo; if(ac_tmp < -32768) { ac_ammo -= ac_tmp + 32768; ac_tmp = -32768; } else if(ac_tmp > 32767) { ac_ammo -= ac_tmp - 32767; ac_tmp = 32767; } ACInfo[playerid][acGiveAmmo][ac_s] = ac_tmp; } else { if(ac_ammo < -32768) ac_ammo = -32768; else if(ac_ammo > 32767) ac_ammo = 32767; ACInfo[playerid][acGiveAmmo][ac_s] = ac_ammo; } ACInfo[playerid][acCheatCount][12] = ACInfo[playerid][acReloadTick] = 0; } else ACInfo[playerid][acGiveAmmo][ac_s] = -65535; ACInfo[playerid][acSetWeapon][ac_s] = weaponid; ACInfo[playerid][acGtcSetWeapon][ac_s] = ACInfo[playerid][acGtcGiveAmmo][ac_s] = GetTickCount() + 2850; } return GivePlayerWeapon(playerid, weaponid, ac_ammo); } ac_fpublic ac_SetPlayerAmmo(playerid, weaponid, ac_ammo) { if(ac_IsValidWeapon(weaponid)) { new ac_s = ac_wSlot[weaponid]; if(ac_ammo < -32768) ac_ammo = -32768; else if(ac_ammo > 32767) ac_ammo = 32767; if(ac_IsWeaponSlotWithAmmo(ac_s) && (ACInfo[playerid][acSetWeapon][ac_s] == -1 ? ACInfo[playerid][acWeapon][ac_s] : ACInfo[playerid][acSetWeapon][ac_s]) == weaponid) { ACInfo[playerid][acNOPCount][1] = 0; ACInfo[playerid][acGiveAmmo][ac_s] = ac_ammo; ACInfo[playerid][acGtcGiveAmmo][ac_s] = GetTickCount() + 2850; } } return SetPlayerAmmo(playerid, weaponid, ac_ammo); } ac_fpublic ac_ResetPlayerWeapons(playerid) { if(!ResetPlayerWeapons(playerid)) return 0; for(new ac_i = 12; ac_i >= 0; --ac_i) { ACInfo[playerid][acWeapon][ac_i] = ACInfo[playerid][acAmmo][ac_i] = 0; ACInfo[playerid][acSetWeapon][ac_i] = -1; ACInfo[playerid][acGiveAmmo][ac_i] = -65535; } ACInfo[playerid][acGtc][6] = GetTickCount() + 2650; return 1; } ac_fpublic ac_GivePlayerMoney(playerid, ac_money) { if(!GivePlayerMoney(playerid, ac_money)) return 0; ACInfo[playerid][acNOPCount][11] = AC_MAX_MONEY_WARNINGS; ACInfo[playerid][acMoney] += ac_money; #undef AC_MAX_MONEY_WARNINGS return 1; } ac_fpublic ac_ResetPlayerMoney(playerid) { if(!ResetPlayerMoney(playerid)) return 0; ACInfo[playerid][acNOPCount][11] = 0; ACInfo[playerid][acMoney] = 0; return 1; } ac_fpublic ac_GetPlayerMoney(playerid) return ACInfo[playerid][acMoney]; ac_fpublic ac_SetPlayerSpecialAction(playerid, ac_actionid) { if(!SetPlayerSpecialAction(playerid, ac_actionid)) return 0; if(ac_actionid == SPECIAL_ACTION_USEJETPACK || 24 <= ac_actionid <= 25 || (ac_actionid == SPECIAL_ACTION_USECELLPHONE || ac_actionid == 68 || SPECIAL_ACTION_DANCE1 <= ac_actionid <= SPECIAL_ACTION_DANCE4) && ACInfo[playerid][acVeh] == 0 || ac_actionid == SPECIAL_ACTION_STOPUSECELLPHONE && ACInfo[playerid][acSpecAct] == SPECIAL_ACTION_USECELLPHONE || (ac_actionid == SPECIAL_ACTION_HANDSUP || SPECIAL_ACTION_DRINK_BEER <= ac_actionid <= SPECIAL_ACTION_DRINK_SPRUNK) && ACInfo[playerid][acSpecAct] != SPECIAL_ACTION_ENTER_VEHICLE && ACInfo[playerid][acVeh] == 0 || ac_actionid == SPECIAL_ACTION_NONE && ACInfo[playerid][acSpecAct] != SPECIAL_ACTION_DUCK && ACInfo[playerid][acSpecAct] != SPECIAL_ACTION_ENTER_VEHICLE && ACInfo[playerid][acSpecAct] != SPECIAL_ACTION_HANDSUP) { ACInfo[playerid][acNOPCount][6] = 0; if((ac_actionid == 68 || SPECIAL_ACTION_HANDSUP <= ac_actionid <= SPECIAL_ACTION_USECELLPHONE || SPECIAL_ACTION_DRINK_BEER <= ac_actionid <= 25) && SPECIAL_ACTION_DANCE1 <= ACInfo[playerid][acSpecAct] <= SPECIAL_ACTION_DANCE4 || SPECIAL_ACTION_DRINK_BEER <= ac_actionid <= 25 && ACInfo[playerid][acSpecAct] == SPECIAL_ACTION_DUCK || (ac_actionid == SPECIAL_ACTION_NONE || 24 <= ac_actionid <= 25) && ACInfo[playerid][acVeh] > 0 || 24 <= ac_actionid <= 25 && ACInfo[playerid][acSpecAct] == SPECIAL_ACTION_ENTER_VEHICLE) ACInfo[playerid][acNextSpecAct] = ac_actionid; else { if(ac_actionid == SPECIAL_ACTION_STOPUSECELLPHONE) ac_actionid = SPECIAL_ACTION_NONE; else if(ac_actionid == SPECIAL_ACTION_USEJETPACK || ac_actionid == SPECIAL_ACTION_HANDSUP || ac_actionid == 68 || SPECIAL_ACTION_DANCE1 <= ac_actionid <= SPECIAL_ACTION_DANCE4 || SPECIAL_ACTION_DRINK_BEER <= ac_actionid <= SPECIAL_ACTION_DRINK_SPRUNK) ACInfo[playerid][acNextSpecAct] = ACInfo[playerid][acSpecAct]; else ACInfo[playerid][acNextSpecAct] = -1; ACInfo[playerid][acSet][3] = ac_actionid; ACInfo[playerid][acGtc][5] = GetTickCount() + 3250; #if defined FreezeSyncPacket if(!ACInfo[playerid][acUnFrozen]) FreezeSyncPacket(playerid, E_ALL_SYNC, false); #endif } } return 1; } ac_fpublic ac_PlayerSpecPlayerOrVehicle(playerid) { ACInfo[playerid][acGtc][16] = GetTickCount() + 2650; return 1; } ac_fpublic ac_SetPlayerInterior(playerid, interiorid) { if(!SetPlayerInterior(playerid, interiorid)) return 0; ACInfo[playerid][acNOPCount][2] = 0; ACInfo[playerid][acSet][0] = interiorid % 256; ACInfo[playerid][acGtc][16] = ACInfo[playerid][acGtc][0] = GetTickCount() + 3250; return 1; } ac_fpublic ac_SetPlayerPos(playerid, Float:ac_x, Float:ac_y, Float:ac_z) { if(!SetPlayerPos(playerid, ac_x, ac_y, ac_z)) return 0; ACInfo[playerid][acSet][7] = 1; ACInfo[playerid][acTpToZ] = false; ACInfo[playerid][acNOPCount][10] = 0; ACInfo[playerid][acSetPosX] = ac_x; ACInfo[playerid][acSetPosY] = ac_y; ACInfo[playerid][acSetPosZ] = ac_z; ACInfo[playerid][acSetPosTick] = ACInfo[playerid][acGtc][10] = GetTickCount() + 3850; #if defined FreezeSyncPacket if(!ACInfo[playerid][acUnFrozen]) FreezeSyncPacket(playerid, E_ALL_SYNC, false); #endif return 1; } ac_fpublic ac_SetPlayerPosFindZ(playerid, Float:ac_x, Float:ac_y, Float:ac_z) { if(!SetPlayerPosFindZ(playerid, ac_x, ac_y, ac_z)) return 0; ACInfo[playerid][acSet][7] = 2; ACInfo[playerid][acTpToZ] = true; ACInfo[playerid][acNOPCount][10] = 0; ACInfo[playerid][acSetPosX] = ac_x; ACInfo[playerid][acSetPosY] = ac_y; ACInfo[playerid][acSetPosTick] = ACInfo[playerid][acGtc][10] = GetTickCount() + 3850; #if defined FreezeSyncPacket if(!ACInfo[playerid][acUnFrozen]) FreezeSyncPacket(playerid, E_ALL_SYNC, false); #endif return 1; } ac_fpublic ac_SetPlayerVelocity(playerid, Float:ac_X, Float:ac_Y, Float:ac_Z) { if(!SetPlayerVelocity(playerid, ac_X, ac_Y, ac_Z)) return 0; ACInfo[playerid][acSpeed] = ac_GetSpeed(ac_X, ac_Y, ac_Z); ACInfo[playerid][acGtc][9] = GetTickCount() + 1650; return 1; } ac_fpublic ac_PutPlayerInVehicle(playerid, vehicleid, ac_seatid) { if(!PutPlayerInVehicle(playerid, vehicleid, ac_seatid)) return 0; if(!(SPECIAL_ACTION_DANCE1 <= ACInfo[playerid][acSpecAct] <= SPECIAL_ACTION_DANCE4) && !(SPECIAL_ACTION_DRINK_BEER <= ACInfo[playerid][acSpecAct] <= SPECIAL_ACTION_DRINK_SPRUNK) && GetPlayerVirtualWorld(playerid) == GetVehicleVirtualWorld(vehicleid)) { new ac_model = GetVehicleModel(vehicleid); ACInfo[playerid][acNOPCount][7] = 0; ACInfo[playerid][acSet][8] = vehicleid; if(ac_IsABusEx(ac_model) || ac_IsVehicleSeatOccupied(vehicleid, ac_seatid) || ac_seatid > ac_GetMaxPassengers(ac_model)) ACInfo[playerid][acSet][4] = -1; else ACInfo[playerid][acSet][4] = ac_seatid; ACInfo[playerid][acGtc][1] = GetTickCount() + 2650; } return 1; } ac_fpublic ac_RemovePlayerFromVehicle(playerid) { if(!RemovePlayerFromVehicle(playerid)) return 0; ACInfo[playerid][acSet][9] = 1; ACInfo[playerid][acGtc][7] = GetTickCount() + 4650; return 1; } ac_fpublic ac_SetVehiclePos(vehicleid, Float:ac_x, Float:ac_y, Float:ac_z) { if(!SetVehiclePos(vehicleid, ac_x, ac_y, ac_z)) return 0; new ac_driver = ACVehInfo[vehicleid][acDriver]; if(ac_driver != INVALID_PLAYER_ID) { ACInfo[ac_driver][acSet][7] = 3; ACInfo[ac_driver][acTpToZ] = false; ACInfo[ac_driver][acNOPCount][10] = 0; ACInfo[ac_driver][acSetPosX] = ac_x; ACInfo[ac_driver][acSetPosY] = ac_y; ACInfo[ac_driver][acSetPosZ] = ac_z; ACInfo[ac_driver][acSetPosTick] = ACInfo[ac_driver][acGtc][10] = GetTickCount() + 3850; #if defined FreezeSyncPacket if(!ACInfo[ac_driver][acUnFrozen]) FreezeSyncPacket(ac_driver, E_ALL_SYNC, false); #endif } else { ACVehInfo[vehicleid][acPosX] = ac_x; ACVehInfo[vehicleid][acPosY] = ac_y; ACVehInfo[vehicleid][acPosZ] = ac_z; } return 1; } ac_fpublic ac_SetVehicleVelocity(vehicleid, Float:ac_X, Float:ac_Y, Float:ac_Z) { if(!SetVehicleVelocity(vehicleid, ac_X, ac_Y, ac_Z)) return 0; new ac_driver = ACVehInfo[vehicleid][acDriver]; if(ac_driver != INVALID_PLAYER_ID) { ACVehInfo[vehicleid][acVelX] = ac_X; ACVehInfo[vehicleid][acVelY] = ac_Y; ACVehInfo[vehicleid][acVelZ] = ac_Z; ACVehInfo[vehicleid][acSpeed] = ac_GetSpeed(ac_X, ac_Y, ac_Z); ACInfo[ac_driver][acGtc][8] = GetTickCount() + 1650; } return 1; } ac_fpublic ac_SetVehicleAngularVelocity(vehicleid, Float:ac_X, Float:ac_Y, Float:ac_Z) { if(!SetVehicleAngularVelocity(vehicleid, ac_X, ac_Y, ac_Z)) return 0; new ac_driver = ACVehInfo[vehicleid][acDriver]; if(ac_driver != INVALID_PLAYER_ID) { ACVehInfo[vehicleid][acVelX] = ac_X; ACVehInfo[vehicleid][acVelY] = ac_Y; ACVehInfo[vehicleid][acVelZ] = ac_Z; ACVehInfo[vehicleid][acSpeed] = ac_GetSpeed(ac_X, ac_Y, ac_Z); ACInfo[ac_driver][acGtc][8] = GetTickCount() + 1650; } return 1; } ac_fpublic ac_LinkVehicleToInterior(vehicleid, interiorid) { if(!LinkVehicleToInterior(vehicleid, interiorid)) return 0; ACVehInfo[vehicleid][acInt] = interiorid % 256; return 1; } ac_fpublic ac_ChangeVehiclePaintjob(vehicleid, paintjobid) { ACVehInfo[vehicleid][acPaintJob] = paintjobid; return ChangeVehiclePaintjob(vehicleid, paintjobid); } ac_fpublic ac_SetVehicleHealth(vehicleid, Float:ac_health) { if(!SetVehicleHealth(vehicleid, ac_health)) return 0; new ac_driver = ACVehInfo[vehicleid][acDriver]; if(ac_driver != INVALID_PLAYER_ID) { ACInfo[ac_driver][acNOPCount][4] = 0; ACInfo[ac_driver][acSetVehHealth] = ac_health; ACInfo[ac_driver][acGtc][3] = GetTickCount() + 2650; #if defined FreezeSyncPacket if(!ACInfo[ac_driver][acUnFrozen]) FreezeSyncPacket(ac_driver, E_ALL_SYNC, false); #endif } else ACVehInfo[vehicleid][acHealth] = ac_health; return 1; } ac_fpublic ac_RepairVehicle(vehicleid) { if(!RepairVehicle(vehicleid)) return 0; new ac_driver = ACVehInfo[vehicleid][acDriver]; if(ac_driver != INVALID_PLAYER_ID) { ACInfo[ac_driver][acNOPCount][4] = 0; ACInfo[ac_driver][acSetVehHealth] = 1000.0; ACInfo[ac_driver][acGtc][3] = GetTickCount() + 2650; #if defined FreezeSyncPacket if(!ACInfo[ac_driver][acUnFrozen]) FreezeSyncPacket(ac_driver, E_ALL_SYNC, false); #endif } else ACVehInfo[vehicleid][acHealth] = 1000.0; ACVehInfo[vehicleid][acPanels] = ACVehInfo[vehicleid][acDoors] = ACVehInfo[vehicleid][acLights] = ACVehInfo[vehicleid][acTires] = 0; return 1; } ac_fpublic ac_UpdateVehicleDamageStatus(vehicleid, ac_panels, ac_doors, ac_lights, ac_tires) { if(!UpdateVehicleDamageStatus(vehicleid, ac_panels, ac_doors, ac_lights, ac_tires)) return 0; ACVehInfo[vehicleid][acPanels] = ac_panels; ACVehInfo[vehicleid][acDoors] = ac_doors; ACVehInfo[vehicleid][acLights] = ac_lights; ACVehInfo[vehicleid][acTires] = ac_tires; return 1; } ac_fpublic ac_SetVehicleParamsEx(vehicleid, ac_engine, ac_lights, ac_alarm, ac_doors, ac_bonnet, ac_boot, ac_objective) { if(!SetVehicleParamsEx(vehicleid, ac_engine, ac_lights, ac_alarm, ac_doors, ac_bonnet, ac_boot, ac_objective)) return 0; #if defined foreach foreach(new ac_i : Player) ACVehInfo[vehicleid][acLocked][ac_i] = ac_doors; #else #if defined GetPlayerPoolSize for(new ac_i = GetPlayerPoolSize(); ac_i >= 0; --ac_i) #else for(new ac_i = MAX_PLAYERS - 1; ac_i >= 0; --ac_i) #endif { if(IsVehicleStreamedIn(vehicleid, ac_i)) ACVehInfo[vehicleid][acLocked][ac_i] = ac_doors; } #endif return 1; } ac_fpublic ac_SetVehicleParamsForPlayer(vehicleid, playerid, ac_objective, ac_doorslocked) { if(!SetVehicleParamsForPlayer(vehicleid, playerid, ac_objective, ac_doorslocked)) return 0; ACVehInfo[vehicleid][acLocked][playerid] = ac_doorslocked; return 1; } ac_fpublic ac_SetVehicleToRespawn(vehicleid) { new ac_driver = ACVehInfo[vehicleid][acDriver]; if(ac_driver != INVALID_PLAYER_ID) { ACInfo[ac_driver][acGtc][8] = GetTickCount() + 1650; ACVehInfo[vehicleid][acDriver] = INVALID_PLAYER_ID; } ACVehInfo[vehicleid][acPaintJob] = 3; ACVehInfo[vehicleid][acHealth] = 1000.0; ACVehInfo[vehicleid][acSpawned] = true; ACVehInfo[vehicleid][acTrSpeed] = -1; ACVehInfo[vehicleid][acPosDiff] = ACVehInfo[vehicleid][acTrVelX] = ACVehInfo[vehicleid][acTrVelY] = ACVehInfo[vehicleid][acTrVelZ] = ACVehInfo[vehicleid][acVelX] = ACVehInfo[vehicleid][acVelY] = ACVehInfo[vehicleid][acVelZ] = 0.0; ACVehInfo[vehicleid][acSpeed] = ACVehInfo[vehicleid][acTires] = ACVehInfo[vehicleid][acLights] = ACVehInfo[vehicleid][acDoors] = ACVehInfo[vehicleid][acPanels] = ACVehInfo[vehicleid][acLastSpeed] = ACVehInfo[vehicleid][acSpeedDiff] = ACVehInfo[vehicleid][acTrSpeedDiff] = 0; ACVehInfo[vehicleid][acPosX] = ACVehInfo[vehicleid][acSpawnPosX]; ACVehInfo[vehicleid][acPosY] = ACVehInfo[vehicleid][acSpawnPosY]; ACVehInfo[vehicleid][acPosZ] = ACVehInfo[vehicleid][acSpawnPosZ]; ACVehInfo[vehicleid][acZAngle] = ACVehInfo[vehicleid][acSpawnZAngle]; return SetVehicleToRespawn(vehicleid); } ac_fpublic ac_EnableAntiCheat(code, enable) { if(!(0 <= code < sizeof ac_ACAllow)) return 0; if(code == 42) { if(enable) { if(!ac_ACAllow ) { #if !AC_USE_QUERY #if defined GetConsoleVarAsBool ac_QueryEnable = (GetConsoleVarAsBool("query") != 0); #else ac_QueryEnable = (GetServerVarAsBool("query") != 0); #endif #endif #if defined GetConsoleVarAsBool ac_RconEnable = (GetConsoleVarAsBool("rcon") != 0); #else ac_RconEnable = (GetServerVarAsBool("rcon") != 0); #endif } #if !AC_USE_QUERY SendRconCommand("query 0"); #endif SendRconCommand("rcon 0"); } else { static ac_strtmp[9]; #if !AC_USE_QUERY format(ac_strtmp, sizeof ac_strtmp, "query %b", ac_QueryEnable); SendRconCommand(ac_strtmp); #endif format(ac_strtmp, sizeof ac_strtmp, "rcon %b", ac_RconEnable); SendRconCommand(ac_strtmp); } } ac_ACAllow[code] = (enable != 0); if(enable) { #if defined foreach foreach(new ac_i : Player) { #else #if defined GetPlayerPoolSize for(new ac_i = GetPlayerPoolSize(); ac_i >= 0; --ac_i) #else for(new ac_i = MAX_PLAYERS - 1; ac_i >= 0; --ac_i) #endif { if(!IsPlayerConnected(ac_i)) continue; #endif ACInfo[ac_i][acACAllow][code] = ac_ACAllow[code]; switch(code) { case 7: ACInfo[ac_i][acCheatCount][13] = 0; case 9: ACInfo[ac_i][acCheatCount][15] = 0; case 10: ACInfo[ac_i][acCheatCount][18] = ACInfo[ac_i][acCheatCount][14] = 0; #if AC_USE_AMMUNATIONS case 15: ACInfo[ac_i][acCheatCount][20] = 0; #endif case 17: ACInfo[ac_i][acCheatCount][7] = 0; case 19: ACInfo[ac_i][acCheatCount][9] = 0; case 20: ACInfo[ac_i][acCheatCount][10] = 0; #if AC_USE_TUNING_GARAGES case 23: ACInfo[ac_i][acCheatCount][21] = 0; #endif case 26: ACInfo[ac_i][acCheatCount][12] = ACInfo[ac_i][acCheatCount][8] = 0; case 29: ACInfo[ac_i][acCheatCount][11] = ACInfo[ac_i][acCheatCount][6] = 0; case 30: ACInfo[ac_i][acCheatCount][17] = 0; case 34: ACInfo[ac_i][acCheatCount][5] = 0; case 38: ACInfo[ac_i][acCheatCount][0] = 0; case 47: ACInfo[ac_i][acCheatCount][16] = 0; } } } else { #if defined foreach foreach(new ac_i : Player) { #else #if defined GetPlayerPoolSize for(new ac_i = GetPlayerPoolSize(); ac_i >= 0; --ac_i) #else for(new ac_i = MAX_PLAYERS - 1; ac_i >= 0; --ac_i) #endif { if(!IsPlayerConnected(ac_i)) continue; #endif ACInfo[ac_i][acACAllow][code] = ac_ACAllow[code]; } } #if AC_USE_CONFIG_FILES && AUTOSAVE_SETTINGS_IN_CONFIG static ac_strtmp[10]; new ac_string[415], File:ac_cfgFile = fopen(AC_CONFIG_FILE, io_write); if(ac_cfgFile) { for(new ac_i; ac_i < sizeof ac_ACAllow; ++ac_i) { format(ac_strtmp, sizeof ac_strtmp, "%d //%d\r\n", ac_ACAllow[ac_i], ac_i); strcat(ac_string, ac_strtmp); } fwrite(ac_cfgFile, ac_string); fclose(ac_cfgFile); } #endif return 1; } ac_fpublic ac_EnableAntiNOP(nopcode, enable) { if(!(0 <= nopcode < sizeof ac_NOPAllow)) return 0; ac_NOPAllow[nopcode] = (enable != 0); #if defined foreach foreach(new ac_i : Player) { #else #if defined GetPlayerPoolSize for(new ac_i = GetPlayerPoolSize(); ac_i >= 0; --ac_i) #else for(new ac_i = MAX_PLAYERS - 1; ac_i >= 0; --ac_i) #endif { if(!IsPlayerConnected(ac_i)) continue; #endif ACInfo[ac_i][acNOPAllow][nopcode] = ac_NOPAllow[nopcode]; } #if AC_USE_CONFIG_FILES && AUTOSAVE_SETTINGS_IN_CONFIG static ac_strtmp[10]; new ac_string[87], File:ac_cfgFile = fopen(AC_NOP_CONFIG_FILE, io_write); if(ac_cfgFile) { for(new ac_i; ac_i < sizeof ac_NOPAllow; ++ac_i) { format(ac_strtmp, sizeof ac_strtmp, "%d //%d\r\n", ac_NOPAllow[ac_i], ac_i); strcat(ac_string, ac_strtmp); } fwrite(ac_cfgFile, ac_string); fclose(ac_cfgFile); } #endif #undef AUTOSAVE_SETTINGS_IN_CONFIG return 1; } ac_fpublic ac_EnableAntiCheatForPlayer(playerid, code, enable) { if(!(0 <= code < sizeof ac_ACAllow)) return -1; ACInfo[playerid][acACAllow][code] = (enable != 0); if(enable) { switch(code) { case 7: ACInfo[playerid][acCheatCount][13] = 0; case 9: ACInfo[playerid][acCheatCount][15] = 0; case 10: ACInfo[playerid][acCheatCount][18] = ACInfo[playerid][acCheatCount][14] = 0; #if AC_USE_AMMUNATIONS case 15: ACInfo[playerid][acCheatCount][20] = 0; #endif case 17: ACInfo[playerid][acCheatCount][7] = 0; case 19: ACInfo[playerid][acCheatCount][9] = 0; case 20: ACInfo[playerid][acCheatCount][10] = 0; #if AC_USE_TUNING_GARAGES case 23: ACInfo[playerid][acCheatCount][21] = 0; #endif case 26: ACInfo[playerid][acCheatCount][12] = ACInfo[playerid][acCheatCount][8] = 0; case 29: ACInfo[playerid][acCheatCount][11] = ACInfo[playerid][acCheatCount][6] = 0; case 30: ACInfo[playerid][acCheatCount][17] = 0; case 34: ACInfo[playerid][acCheatCount][5] = 0; case 38: ACInfo[playerid][acCheatCount][0] = 0; case 47: ACInfo[playerid][acCheatCount][16] = 0; } } return 1; } ac_fpublic ac_EnableAntiNOPForPlayer(playerid, nopcode, enable) { if(!(0 <= nopcode < sizeof ac_NOPAllow)) return -1; ACInfo[playerid][acNOPAllow][nopcode] = (enable != 0); return 1; } ac_fpublic ac_IsAntiCheatEnabled(code) { if(!(0 <= code < sizeof ac_ACAllow)) return 0; return ac_ACAllow[code]; } ac_fpublic ac_IsAntiNOPEnabled(nopcode) { if(!(0 <= nopcode < sizeof ac_NOPAllow)) return 0; return ac_NOPAllow[nopcode]; } ac_fpublic ac_IsAntiCheatEnabledForPlayer(playerid, code) { if(!(0 <= code < sizeof ac_ACAllow)) return 0; return ACInfo[playerid][acACAllow][code]; } ac_fpublic ac_IsAntiNOPEnabledForPlayer(playerid, nopcode) { if(!(0 <= nopcode < sizeof ac_NOPAllow)) return 0; return ACInfo[playerid][acNOPAllow][nopcode]; } ac_fpublic ac_AntiCheatGetSpeed(playerid) return ACInfo[playerid][acSpeed]; ac_fpublic ac_AntiCheatGetAnimationIndex(playerid) return ACInfo[playerid][acAnim]; ac_fpublic ac_AntiCheatGetDialog(playerid) return ACInfo[playerid][acDialog]; ac_fpublic ac_AntiCheatGetInterior(playerid) return ACInfo[playerid][acInt]; ac_fpublic ac_AntiCheatGetEnterVehicle(playerid) return ACInfo[playerid][acEnterVeh]; ac_fpublic ac_AntiCheatGetEnterVehicleSeat(playerid) return ACInfo[playerid][acEnterSeat]; ac_fpublic ac_AntiCheatGetVehicleID(playerid) return ACInfo[playerid][acVeh]; ac_fpublic ac_AntiCheatGetVehicleSeat(playerid) return ACInfo[playerid][acSeat]; ac_fpublic ac_AntiCheatGetWeapon(playerid) return ACInfo[playerid][acHoldWeapon]; ac_fpublic ac_AntiCheatGetWeaponInSlot(playerid, slot) return ACInfo[playerid][acWeapon][slot]; ac_fpublic ac_AntiCheatGetAmmoInSlot(playerid, slot) return ACInfo[playerid][acAmmo][slot]; ac_fpublic ac_AntiCheatGetSpecialAction(playerid) return ACInfo[playerid][acSpecAct]; ac_fpublic ac_AntiCheatGetLastSpecialActio(playerid) return ACInfo[playerid][acLastSpecAct]; ac_fpublic ac_AntiCheatGetLastShotWeapon(playerid) return ACInfo[playerid][acShotWeapon]; ac_fpublic ac_AntiCheatGetLastPickup(playerid) return ACInfo[playerid][acLastPickup]; ac_fpublic ac_AntiCheatGetLastUpdateTime(playerid) return ACInfo[playerid][acUpdateTick]; ac_fpublic ac_AntiCheatGetLastReloadTime(playerid) return ACInfo[playerid][acReloadTick]; ac_fpublic ac_AntiCheatGetLastEnteredVehTi(playerid) return ACInfo[playerid][acEnterVehTick]; ac_fpublic ac_AntiCheatGetLastShotTime(playerid) return ACInfo[playerid][acShotTick]; ac_fpublic ac_AntiCheatGetLastSpawnTime(playerid) return ACInfo[playerid][acSpawnTick]; ac_fpublic ac_AntiCheatIntEnterExitsIsEnab(playerid) return ACInfo[playerid][acIntEnterExits]; ac_fpublic ac_AntiCheatStuntBonusIsEnabled(playerid) return ACInfo[playerid][acStuntBonus]; ac_fpublic ac_AntiCheatIsInModShop(playerid) return ACInfo[playerid][acModShop]; ac_fpublic ac_AntiCheatIsInSpectate(playerid) return ACInfo[playerid][acSpec]; ac_fpublic ac_AntiCheatIsFrozen(playerid) return !ACInfo[playerid][acUnFrozen]; ac_fpublic ac_AntiCheatIsDead(playerid) return ACInfo[playerid][acDead]; ac_fpublic ac_AntiCheatIsConnected(playerid) return ACInfo[playerid][acOnline]; ac_fpublic ac_AntiCheatKickWithDesync(playerid, code) { if(ACInfo[playerid][acKicked] > 0) return -1; new ac_gpp = GetPlayerPing(playerid) + 150; ACInfo[playerid][acKickTimerID] = SetTimerEx("ac_KickTimer", (ac_gpp > AC_MAX_PING ? AC_MAX_PING : ac_gpp), false, "i", playerid); if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(code == 4) ACInfo[playerid][acKickVeh] = GetPlayerVehicleID(playerid); ACInfo[playerid][acKicked] = 2; } else ACInfo[playerid][acKicked] = 1; return 1; } ac_fpublic ac_AntiCheatIsKickedWithDesync(playerid) return ACInfo[playerid][acKicked]; ac_fpublic ac_AntiCheatGetVehicleDriver(vehicleid) return ACVehInfo[vehicleid][acDriver]; ac_fpublic ac_AntiCheatGetVehicleInterior(vehicleid) return ACVehInfo[vehicleid][acInt]; ac_fpublic ac_AntiCheatGetVehiclePaintjob(vehicleid) return ACVehInfo[vehicleid][acPaintJob]; ac_fpublic ac_AntiCheatGetVehicleSpeed(vehicleid) return ACVehInfo[vehicleid][acSpeed]; ac_fpublic ac_AntiCheatIsVehicleSpawned(vehicleid) return ACVehInfo[vehicleid][acSpawned]; ac_fpublic ac_AntiCheatGetNextDialog(playerid) return ACInfo[playerid][acNextDialog]; #endif stock acc_AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2) { new ac_vehid = AddStaticVehicle(modelid, spawn_x, spawn_y, spawn_z, z_angle, color1, color2); if(ac_vehid != INVALID_VEHICLE_ID) { #if defined FILTERSCRIPT CallRemoteFunction("ac_AddStaticVehicle", "iffff", ac_vehid, spawn_x, spawn_y, spawn_z, z_angle); #else ac_AddStaticVehicle(ac_vehid, spawn_x, spawn_y, spawn_z, z_angle); #endif } return ac_vehid; } #if defined _ALS_AddStaticVehicle #undef AddStaticVehicle #else #define _ALS_AddStaticVehicle #endif #define AddStaticVehicle acc_AddStaticVehicle #if defined OnVehicleSirenStateChange stock acc_AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay, addsiren = 0) { new ac_vehid = AddStaticVehicleEx(modelid, spawn_x, spawn_y, spawn_z, z_angle, color1, color2, respawn_delay, addsiren); #else stock acc_AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2, respawn_delay) { new ac_vehid = AddStaticVehicleEx(modelid, spawn_x, spawn_y, spawn_z, z_angle, color1, color2, respawn_delay); #endif if(ac_vehid != INVALID_VEHICLE_ID) { #if defined FILTERSCRIPT CallRemoteFunction("ac_AddStaticVehicle", "iffff", ac_vehid, spawn_x, spawn_y, spawn_z, z_angle); #else ac_AddStaticVehicle(ac_vehid, spawn_x, spawn_y, spawn_z, z_angle); #endif } return ac_vehid; } #if defined _ALS_AddStaticVehicleEx #undef AddStaticVehicleEx #else #define _ALS_AddStaticVehicleEx #endif #define AddStaticVehicleEx acc_AddStaticVehicleEx #if defined OnVehicleSirenStateChange stock acc_CreateVehicle(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay, addsiren = 0) { new ac_vehid = CreateVehicle(vehicletype, x, y, z, rotation, color1, color2, respawn_delay, addsiren); #else stock acc_CreateVehicle(vehicletype, Float:x, Float:y, Float:z, Float:rotation, color1, color2, respawn_delay) { new ac_vehid = CreateVehicle(vehicletype, x, y, z, rotation, color1, color2, respawn_delay); #endif if(ac_vehid != INVALID_VEHICLE_ID && ac_vehid > 0) { #if defined FILTERSCRIPT CallRemoteFunction("ac_AddStaticVehicle", "iffff", ac_vehid, x, y, z, rotation); #else ac_AddStaticVehicle(ac_vehid, x, y, z, rotation); #endif } return ac_vehid; } #if defined _ALS_CreateVehicle #undef CreateVehicle #else #define _ALS_CreateVehicle #endif #define CreateVehicle acc_CreateVehicle stock acc_AddPlayerClass(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo) { new ac_class = AddPlayerClass(modelid, spawn_x, spawn_y, spawn_z, z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo); #if defined FILTERSCRIPT CallRemoteFunction("ac_AddPlayerClass", "ifffiiiiii", ac_class, spawn_x, spawn_y, spawn_z, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo); #else ac_AddPlayerClass(ac_class, spawn_x, spawn_y, spawn_z, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo); #endif return ac_class; } #if defined _ALS_AddPlayerClass #undef AddPlayerClass #else #define _ALS_AddPlayerClass #endif #define AddPlayerClass acc_AddPlayerClass stock acc_AddPlayerClassEx(teamid, modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo) { new ac_class = AddPlayerClassEx(teamid, modelid, spawn_x, spawn_y, spawn_z, z_angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo); #if defined FILTERSCRIPT CallRemoteFunction("ac_AddPlayerClass", "ifffiiiiii", ac_class, spawn_x, spawn_y, spawn_z, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo); #else ac_AddPlayerClass(ac_class, spawn_x, spawn_y, spawn_z, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo); #endif return ac_class; } #if defined _ALS_AddPlayerClassEx #undef AddPlayerClassEx #else #define _ALS_AddPlayerClassEx #endif #define AddPlayerClassEx acc_AddPlayerClassEx stock orig_SetSpawnInfo(playerid, team, skin, Float:x, Float:y, Float:z, Float:rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo) return SetSpawnInfo(playerid, team, skin, x, y, z, rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo); stock acc_SetSpawnInfo(playerid, team, skin, Float:x, Float:y, Float:z, Float:rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_SetSpawnInfo", "iiiffffiiiiii", playerid, team, skin, x, y, z, rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo); #else return ac_SetSpawnInfo(playerid, team, skin, x, y, z, rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo); #endif } #if defined _ALS_SetSpawnInfo #undef SetSpawnInfo #else #define _ALS_SetSpawnInfo #endif #define SetSpawnInfo acc_SetSpawnInfo stock acc_AddStaticPickup(model, type, Float:X, Float:Y, Float:Z, virtualworld = 0) { new ac_pickid = CreatePickup(model, type, X, Y, Z, virtualworld); if(ac_pickid != -1) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_CreatePickup", "iiifff", ac_pickid, model, type, X, Y, Z); #else return ac_CreatePickup(ac_pickid, model, type, X, Y, Z); #endif } return 0; } #if defined _ALS_AddStaticPickup #undef AddStaticPickup #else #define _ALS_AddStaticPickup #endif #define AddStaticPickup acc_AddStaticPickup stock acc_CreatePickup(model, type, Float:X, Float:Y, Float:Z, virtualworld = 0) { new ac_pickid = CreatePickup(model, type, X, Y, Z, virtualworld); if(ac_pickid != -1) { #if defined FILTERSCRIPT CallRemoteFunction("ac_CreatePickup", "iiifff", ac_pickid, model, type, X, Y, Z); #else ac_CreatePickup(ac_pickid, model, type, X, Y, Z); #endif } return ac_pickid; } #if defined _ALS_CreatePickup #undef CreatePickup #else #define _ALS_CreatePickup #endif #define CreatePickup acc_CreatePickup #if defined CreateDynamicPickup #if defined STREAMER_ENABLE_TAGS stock STREAMER_TAG_PICKUP:acc_CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_PICKUP_SD, STREAMER_TAG_AREA:areaid = STREAMER_TAG_AREA:-1, priority = 0) { new STREAMER_TAG_PICKUP:ac_pickid = CreateDynamicPickup(modelid, type, x, y, z, worldid, interiorid, playerid, streamdistance, areaid, priority); #else stock acc_CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_PICKUP_SD, areaid = -1, priority = 0) { new ac_pickid = CreateDynamicPickup(modelid, type, x, y, z, worldid, interiorid, playerid, streamdistance, areaid, priority); #endif if(_:ac_pickid > 0) { #if defined FILTERSCRIPT CallRemoteFunction("ac_CreateDynamicPickup", "iii", ac_pickid, modelid, type); #else #if AC_USE_PICKUP_WEAPONS\ && defined Streamer_SetIntData ac_CreateDynamicPickup(ac_pickid, modelid, type); #endif #endif } return ac_pickid; } #if defined _ALS_CreateDynamicPickup #undef CreateDynamicPickup #else #define _ALS_CreateDynamicPickup #endif #define CreateDynamicPickup acc_CreateDynamicPickup #endif #if defined CreateDynamicPickupEx #if defined STREAMER_ENABLE_TAGS stock STREAMER_TAG_PICKUP:acc_CreateDynamicPickupEx(modelid, type, Float:x, Float:y, Float:z, Float:streamdistance = STREAMER_PICKUP_SD, const worlds[] = { -1 }, const interiors[] = { -1 }, const players[] = { -1 }, const STREAMER_TAG_AREA:areas[] = { STREAMER_TAG_AREA:-1 }, priority = 0, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players, maxareas = sizeof areas) { new STREAMER_TAG_PICKUP:ac_pickid = CreateDynamicPickupEx(modelid, type, x, y, z, streamdistance, worlds, interiors, players, areas, priority, maxworlds, maxinteriors, maxplayers, maxareas); #else stock acc_CreateDynamicPickupEx(modelid, type, Float:x, Float:y, Float:z, Float:streamdistance = STREAMER_PICKUP_SD, const worlds[] = { -1 }, const interiors[] = { -1 }, const players[] = { -1 }, const areas[] = { -1 }, priority = 0, maxworlds = sizeof worlds, maxinteriors = sizeof interiors, maxplayers = sizeof players, maxareas = sizeof areas) { new ac_pickid = CreateDynamicPickupEx(modelid, type, x, y, z, streamdistance, worlds, interiors, players, areas, priority, maxworlds, maxinteriors, maxplayers, maxareas); #endif if(_:ac_pickid > 0) { #if defined FILTERSCRIPT CallRemoteFunction("ac_CreateDynamicPickup", "iii", ac_pickid, modelid, type); #else #if AC_USE_PICKUP_WEAPONS\ && defined Streamer_SetIntData ac_CreateDynamicPickup(ac_pickid, modelid, type); #endif #endif } return ac_pickid; } #if defined _ALS_CreateDynamicPickupEx #undef CreateDynamicPickupEx #else #define _ALS_CreateDynamicPickupEx #endif #define CreateDynamicPickupEx acc_CreateDynamicPickupEx #endif stock acc_DestroyVehicle(vehicleid) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_DestroyVehicle", "i", vehicleid); #else return ac_DestroyVehicle(vehicleid); #endif } #if defined _ALS_DestroyVehicle #undef DestroyVehicle #else #define _ALS_DestroyVehicle #endif #define DestroyVehicle acc_DestroyVehicle stock acc_DestroyPickup(pickup) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_DestroyPickup", "i", pickup); #else return ac_DestroyPickup(pickup); #endif } #if defined _ALS_DestroyPickup #undef DestroyPickup #else #define _ALS_DestroyPickup #endif #define DestroyPickup acc_DestroyPickup #if defined DestroyDynamicPickup #if defined STREAMER_ENABLE_TAGS stock acc_DestroyDynamicPickup(STREAMER_TAG_PICKUP:pickupid) #else stock acc_DestroyDynamicPickup(pickupid) #endif { #if defined FILTERSCRIPT return CallRemoteFunction("ac_DestroyDynamicPickup", "i", pickupid); #else return ac_DestroyDynamicPickup(pickupid); #endif } #if defined _ALS_DestroyDynamicPickup #undef DestroyDynamicPickup #else #define _ALS_DestroyDynamicPickup #endif #define DestroyDynamicPickup acc_DestroyDynamicPickup #endif stock acc_DisableInteriorEnterExits() { #if defined FILTERSCRIPT return CallRemoteFunction("ac_DisableInteriorEnterExits", ""); #else return ac_DisableInteriorEnterExits(); #endif } #if defined _ALS_DisableInteriorEnterExits #undef DisableInteriorEnterExits #else #define _ALS_DisableInteriorEnterExits #endif #define DisableInteriorEnterExits acc_DisableInteriorEnterExits stock acc_UsePlayerPedAnims() { #if defined FILTERSCRIPT return CallRemoteFunction("ac_UsePlayerPedAnims", ""); #else return ac_UsePlayerPedAnims(); #endif } #if defined _ALS_UsePlayerPedAnims #undef UsePlayerPedAnims #else #define _ALS_UsePlayerPedAnims #endif #define UsePlayerPedAnims acc_UsePlayerPedAnims #if defined EnableVehicleFriendlyFire stock acc_EnableVehicleFriendlyFire() { #if defined FILTERSCRIPT return CallRemoteFunction("ac_EnableVehicleFriendlyFire", ""); #else return ac_EnableVehicleFriendlyFire(); #endif } #if defined _ALS_EnableVehicleFriendlyFire #undef EnableVehicleFriendlyFire #else #define _ALS_EnableVehicleFriendlyFire #endif #define EnableVehicleFriendlyFire acc_EnableVehicleFriendlyFire #endif stock acc_EnableStuntBonusForAll(enable) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_EnableStuntBonusForAll", "i", enable); #else return ac_EnableStuntBonusForAll(enable); #endif } #if defined _ALS_EnableStuntBonusForAll #undef EnableStuntBonusForAll #else #define _ALS_EnableStuntBonusForAll #endif #define EnableStuntBonusForAll acc_EnableStuntBonusForAll stock acc_EnableStuntBonusForPlayer(playerid, enable) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_EnableStuntBonusForPlayer", "ii", playerid, enable); #else return ac_EnableStuntBonusForPlayer(playerid, enable); #endif } #if defined _ALS_EnableStuntBonusForPlayer #undef EnableStuntBonusForPlayer #else #define _ALS_EnableStuntBonusForPlayer #endif #define EnableStuntBonusForPlayer acc_EnableStuntBonusForPlayer stock orig_ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]) return ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2); stock acc_ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]) { if(ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2)) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_fs_ShowPlayerDialog", "id", playerid, dialogid); #else return ac_ShowPlayerDialog(playerid, dialogid); #endif } return 0; } #if defined _ALS_ShowPlayerDialog #undef ShowPlayerDialog #else #define _ALS_ShowPlayerDialog #endif #define ShowPlayerDialog acc_ShowPlayerDialog stock orig_TogglePlayerControllable(playerid, toggle) return TogglePlayerControllable(playerid, toggle); stock acc_TogglePlayerControllable(playerid, toggle) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_TogglePlayerControllable", "ii", playerid, toggle); #else return ac_TogglePlayerControllable(playerid, toggle); #endif } #if defined _ALS_TogglePlayerControllable #undef TogglePlayerControllable #else #define _ALS_TogglePlayerControllable #endif #define TogglePlayerControllable acc_TogglePlayerControllable stock orig_TogglePlayerSpectating(playerid, toggle) return TogglePlayerSpectating(playerid, toggle); stock acc_TogglePlayerSpectating(playerid, toggle) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_TogglePlayerSpectating", "ii", playerid, toggle); #else return ac_TogglePlayerSpectating(playerid, toggle); #endif } #if defined _ALS_TogglePlayerSpectating #undef TogglePlayerSpectating #else #define _ALS_TogglePlayerSpectating #endif #define TogglePlayerSpectating acc_TogglePlayerSpectating stock orig_SpawnPlayer(playerid) return SpawnPlayer(playerid); stock acc_SpawnPlayer(playerid) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_SpawnPlayer", "i", playerid); #else return ac_SpawnPlayer(playerid); #endif } #if defined _ALS_SpawnPlayer #undef SpawnPlayer #else #define _ALS_SpawnPlayer #endif #define SpawnPlayer acc_SpawnPlayer stock orig_SetPlayerHealth(playerid, Float:health) return SetPlayerHealth(playerid, health); stock acc_SetPlayerHealth(playerid, Float:health) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_SetPlayerHealth", "if", playerid, health); #else return ac_SetPlayerHealth(playerid, health); #endif } #if defined _ALS_SetPlayerHealth #undef SetPlayerHealth #else #define _ALS_SetPlayerHealth #endif #define SetPlayerHealth acc_SetPlayerHealth stock orig_SetPlayerArmour(playerid, Float:armour) return SetPlayerArmour(playerid, armour); stock acc_SetPlayerArmour(playerid, Float:armour) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_SetPlayerArmour", "if", playerid, armour); #else return ac_SetPlayerArmour(playerid, armour); #endif } #if defined _ALS_SetPlayerArmour #undef SetPlayerArmour #else #define _ALS_SetPlayerArmour #endif #define SetPlayerArmour acc_SetPlayerArmour stock orig_GivePlayerWeapon(playerid, weaponid, ammo) return GivePlayerWeapon(playerid, weaponid, ammo); stock acc_GivePlayerWeapon(playerid, weaponid, ammo) { if(!(0 <= playerid < MAX_PLAYERS)) return 0; #if defined FILTERSCRIPT return CallRemoteFunction("ac_GivePlayerWeapon", "iid", playerid, weaponid, ammo); #else return ac_GivePlayerWeapon(playerid, weaponid, ammo); #endif } #if defined _ALS_GivePlayerWeapon #undef GivePlayerWeapon #else #define _ALS_GivePlayerWeapon #endif #define GivePlayerWeapon acc_GivePlayerWeapon stock orig_SetPlayerAmmo(playerid, weaponslot, ammo) return SetPlayerAmmo(playerid, weaponslot, ammo); stock acc_SetPlayerAmmo(playerid, weaponslot, ammo) { if(!(0 <= playerid < MAX_PLAYERS)) return 0; #if defined FILTERSCRIPT return CallRemoteFunction("ac_SetPlayerAmmo", "iid", playerid, weaponslot, ammo); #else return ac_SetPlayerAmmo(playerid, weaponslot, ammo); #endif } #if defined _ALS_SetPlayerAmmo #undef SetPlayerAmmo #else #define _ALS_SetPlayerAmmo #endif #define SetPlayerAmmo acc_SetPlayerAmmo stock orig_ResetPlayerWeapons(playerid) return ResetPlayerWeapons(playerid); stock acc_ResetPlayerWeapons(playerid) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_ResetPlayerWeapons", "i", playerid); #else return ac_ResetPlayerWeapons(playerid); #endif } #if defined _ALS_ResetPlayerWeapons #undef ResetPlayerWeapons #else #define _ALS_ResetPlayerWeapons #endif #define ResetPlayerWeapons acc_ResetPlayerWeapons stock orig_GivePlayerMoney(playerid, money) return GivePlayerMoney(playerid, money); stock acc_GivePlayerMoney(playerid, money) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_GivePlayerMoney", "id", playerid, money); #else return ac_GivePlayerMoney(playerid, money); #endif } #if defined _ALS_GivePlayerMoney #undef GivePlayerMoney #else #define _ALS_GivePlayerMoney #endif #define GivePlayerMoney acc_GivePlayerMoney stock orig_ResetPlayerMoney(playerid) return ResetPlayerMoney(playerid); stock acc_ResetPlayerMoney(playerid) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_ResetPlayerMoney", "i", playerid); #else return ac_ResetPlayerMoney(playerid); #endif } #if defined _ALS_ResetPlayerMoney #undef ResetPlayerMoney #else #define _ALS_ResetPlayerMoney #endif #define ResetPlayerMoney acc_ResetPlayerMoney stock orig_GetPlayerMoney(playerid) return GetPlayerMoney(playerid); stock acc_GetPlayerMoney(playerid) { if(!IsPlayerConnected(playerid)) return 0; #if defined FILTERSCRIPT return CallRemoteFunction("ac_GetPlayerMoney", "i", playerid); #else return ac_GetPlayerMoney(playerid); #endif } #if defined _ALS_GetPlayerMoney #undef GetPlayerMoney #else #define _ALS_GetPlayerMoney #endif #define GetPlayerMoney acc_GetPlayerMoney stock orig_SetPlayerSpecialAction(playerid, actionid) return SetPlayerSpecialAction(playerid, actionid); stock acc_SetPlayerSpecialAction(playerid, actionid) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_SetPlayerSpecialAction", "ii", playerid, actionid); #else return ac_SetPlayerSpecialAction(playerid, actionid); #endif } #if defined _ALS_SetPlayerSpecialAction #undef SetPlayerSpecialAction #else #define _ALS_SetPlayerSpecialAction #endif #define SetPlayerSpecialAction acc_SetPlayerSpecialAction stock orig_PlayerSpectatePlayer(playerid, targetplayerid, mode = SPECTATE_MODE_NORMAL) return PlayerSpectatePlayer(playerid, targetplayerid, mode); stock acc_PlayerSpectatePlayer(playerid, targetplayerid, mode = SPECTATE_MODE_NORMAL) { if(PlayerSpectatePlayer(playerid, targetplayerid, mode)) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_PlayerSpecPlayerOrVehicle", "i", playerid); #else return ac_PlayerSpecPlayerOrVehicle(playerid); #endif } return 0; } #if defined _ALS_PlayerSpectatePlayer #undef PlayerSpectatePlayer #else #define _ALS_PlayerSpectatePlayer #endif #define PlayerSpectatePlayer acc_PlayerSpectatePlayer stock orig_PlayerSpectateVehicle(playerid, targetvehicleid, mode = SPECTATE_MODE_NORMAL) return PlayerSpectateVehicle(playerid, targetvehicleid, mode); stock acc_PlayerSpectateVehicle(playerid, targetvehicleid, mode = SPECTATE_MODE_NORMAL) { if(PlayerSpectateVehicle(playerid, targetvehicleid, mode)) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_PlayerSpecPlayerOrVehicle", "i", playerid); #else return ac_PlayerSpecPlayerOrVehicle(playerid); #endif } return 0; } #if defined _ALS_PlayerSpectateVehicle #undef PlayerSpectateVehicle #else #define _ALS_PlayerSpectateVehicle #endif #define PlayerSpectateVehicle acc_PlayerSpectateVehicle stock orig_SetPlayerInterior(playerid, interiorid) return SetPlayerInterior(playerid, interiorid); stock acc_SetPlayerInterior(playerid, interiorid) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_SetPlayerInterior", "ii", playerid, interiorid); #else return ac_SetPlayerInterior(playerid, interiorid); #endif } #if defined _ALS_SetPlayerInterior #undef SetPlayerInterior #else #define _ALS_SetPlayerInterior #endif #define SetPlayerInterior acc_SetPlayerInterior stock orig_SetPlayerPos(playerid, Float:x, Float:y, Float:z) return SetPlayerPos(playerid, x, y, z); stock acc_SetPlayerPos(playerid, Float:x, Float:y, Float:z) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_SetPlayerPos", "ifff", playerid, x, y, z); #else return ac_SetPlayerPos(playerid, x, y, z); #endif } #if defined _ALS_SetPlayerPos #undef SetPlayerPos #else #define _ALS_SetPlayerPos #endif #define SetPlayerPos acc_SetPlayerPos stock orig_SetPlayerPosFindZ(playerid, Float:x, Float:y, Float:z) return SetPlayerPosFindZ(playerid, x, y, z); stock acc_SetPlayerPosFindZ(playerid, Float:x, Float:y, Float:z) { #if defined FILTERSCRIPT return CallRemoteFunction("ac_SetPlayerPosFindZ",
Posted · Report post