CreateObject(2992, -2223.68628, -2309.69824, 33.37006, 0.00000, 0.00000, 0.00000); CreateObject(18234, -2241.43921, -2307.35107, 28.39430, 0.00000, 0.00000, 141.50490); CreateObject(2567, -2218.81030, -2336.97046, 31.55280, 0.00000, 0.00000, 316.23691); CreateObject(2669, -2229.44678, -2307.25269, 30.85730, 0.00000, 0.00000, -20.00000); CreateObject(2693, -2228.86841, -2310.48779, 30.33218, 0.00000, 0.00000, 14.96524); CreateObject(2000, -2230.53882, -2308.52002, 29.53682, 0.00000, 0.00000, 45.55361); CreateObject(2718, -2231.46802, -2309.46094, 31.40820, 0.00000, 0.00000, 341.09171); CreateObject(2723, -2228.11841, -2305.91211, 29.98091, 0.00000, 0.00000, 0.00000); CreateObject(2726, -2228.13647, -2305.92163, 30.67800, 0.00000, 0.00000, 0.00000); CreateObject(2826, -2223.56494, -2310.65918, 33.40153, 0.00000, 0.00000, 0.00000); CreateObject(2827, -2222.61792, -2310.37866, 33.47343, 0.00000, 0.00000, 0.00000); CreateObject(2914, -2228.95923, -2310.27539, 32.20300, 0.00000, 0.00000, 0.00000); CreateObject(3077, -2238.71655, -2320.07983, 29.26670, -7.00000, 0.00000, 86.00000); CreateObject(3096, -2238.46802, -2309.83081, 30.54110, 0.00000, 0.00000, 52.61630); CreateObject(3124, -2224.90161, -2310.83374, 32.98560, 0.00000, -20.00000, 360.65100); CreateObject(3174, -2232.99951, -2324.95654, 29.60610, 1.50000, 0.00000, 228.00000); CreateObject(3287, -2223.61426, -2327.75659, 33.79919, 0.00000, 0.00000, 316.51120); CreateObject(3287, -2220.52051, -2330.45459, 33.85965, 0.00000, 0.00000, 316.36078); CreateObject(3350, -2232.63013, -2325.51050, 32.16709, 0.00000, 0.00000, 103.97713); CreateObject(3396, -2211.38696, -2332.83716, 29.58000, 0.00000, 0.00000, 13.40400); CreateObject(3403, -2233.73438, -2311.15942, 32.43950, 0.00000, 0.00000, 320.03964); CreateObject(3434, -2241.38379, -2308.48560, 33.07504, 0.00000, 0.00000, 59.00351); CreateObject(3522, -2242.27344, -2315.89038, 29.15240, 4.00000, 0.00000, 321.00000); CreateObject(3522, -2233.40332, -2304.58130, 29.82807, 0.00000, 0.00000, 322.85052); CreateObject(3521, -2202.92212, -2324.62500, 31.04095, 0.00000, 0.00000, 83.46705); CreateObject(3585, -2222.30908, -2316.79443, 31.26250, 0.00000, 0.00000, 18.16860); CreateObject(1297, -2205.10669, -2323.04980, 32.62423, 0.00000, 0.00000, 49.72610); CreateObject(1297, -2211.62524, -2317.38232, 32.15762, 0.00000, 0.00000, 50.61806); CreateObject(1297, -2220.15356, -2311.04297, 32.61908, 0.00000, 0.00000, 51.34232); CreateObject(1597, -2225.92725, -2320.53296, 32.14313, 0.00000, 0.00000, 245.16852); CreateObject(1720, -2229.51172, -2305.58813, 29.45741, 0.00000, 0.00000, 14.00385); CreateObject(1734, -2229.66895, -2307.88477, 32.19040, 0.00000, 0.00000, 0.00000); CreateObject(3465, -2204.20459, -2328.93164, 30.91230, 0.00000, 0.00000, 335.00000); CreateObject(1650, -2212.01025, -2337.89575, 29.93560, 359.00000, 357.00000, 96.74670); CreateObject(17950, -2189.21899, -2322.51831, 31.87500, 0.00000, 0.00000, 52.37701); CreateObject(17950, -2217.28809, -2335.41333, 31.87500, 0.00000, 0.00000, 317.07889); CreateObject(2567, -2222.47437, -2310.84351, 31.55280, 0.00000, 0.00000, 322.52850); CreateObject(1074, -2219.16211, -2335.01221, 32.27940, 0.00000, 0.00000, 41.43960); CreateObject(1075, -2218.10742, -2336.24243, 32.27940, 0.00000, 0.00000, 41.64480); CreateObject(1077, -2216.88086, -2337.31787, 32.27940, 0.00000, 0.00000, 53.70890); CreateObject(1080, -2210.61084, -2339.56079, 30.16700, -0.10500, 0.00000, 71.94307); CreateObject(1073, -2219.45190, -2335.11426, 30.62410, 0.00000, 0.00000, 44.29890); CreateObject(1079, -2217.00586, -2337.44482, 30.62410, 0.00000, 0.00000, 44.53640); CreateObject(18647, -2218.04028, -2336.04907, 31.65720, 0.00000, 4.00000, 46.24910); CreateObject(18647, -2218.05103, -2336.04150, 30.05200, 0.00000, 4.00000, 45.25480); CreateObject(1010, -2214.72729, -2337.05249, 31.25520, 0.00000, 90.00000, 140.00000); CreateObject(1010, -2214.10596, -2336.41211, 31.25520, 0.00000, 90.00000, 140.00000); CreateObject(1010, -2214.51636, -2336.83496, 31.25520, 0.00000, 90.00000, 140.00000); CreateObject(1023, -2214.19873, -2336.54395, 31.50040, 0.00000, 0.00000, 47.00000); CreateObject(3396, -2234.69434, -2309.21875, 29.58000, 0.00000, 0.00000, 13.40400); CreateObject(3396, -2234.69434, -2309.21875, 29.58000, 0.00000, 0.00000, 13.40400); CreateObject(17951, -2209.13379, -2336.86743, 35.23000, 0.00000, 0.00000, 47.00000); CreateObject(17951, -2192.74023, -2319.82495, 35.12700, 0.00000, 0.00000, 142.15948); CreateObject(18649, -2211.92603, -2332.87378, 30.33261, 0.00000, 0.00000, 12.81983); CreateObject(17950, -2212.14136, -2340.14819, 31.87500, 0.00000, 0.00000, 317.07889); CreateObject(17951, -2197.46680, -2325.98560, 35.12700, 0.00000, 0.00000, 142.15950); CreateObject(2606, -2202.08179, -2331.86011, 34.77730, 24.00000, 0.00000, 231.09900); CreateObject(2690, -2216.72803, -2329.73682, 31.31120, 0.00000, 0.00000, -30.00000); CreateObject(17951, -2214.33594, -2331.94067, 35.23000, 0.00000, 0.00000, 47.00000); CreateObject(1428, -2208.68188, -2342.52612, 31.09910, 0.00000, 0.00000, 45.33606); CreateObject(1818, -2222.88403, -2317.05151, 30.48001, 0.00000, 0.00000, 0.00000); CreateObject(1818, -2222.84424, -2317.27148, 31.08968, 0.00000, 0.00000, 34.18776); CreateObject(1818, -2224.32349, -2317.65723, 30.58364, 0.00000, 0.00000, 355.53601); CreateObject(1597, -2196.00708, -2318.38110, 32.14313, 0.00000, 0.00000, 321.35825); CreateObject(17950, -2193.89063, -2328.64600, 31.87500, 0.00000, 0.00000, 52.37700); CreateObject(1331, -2214.12891, -2315.63477, 30.49140, 0.00000, 0.00000, 321.45529); CreateObject(1368, -2210.45850, -2318.05762, 30.40340, 0.00000, 0.00000, 320.46307); CreateObject(2258, -2238.79028, -2319.07080, 31.32530, 0.00000, 0.00000, 84.77270); CreateObject(2260, -2238.37598, -2320.36304, 30.72090, 0.00000, 0.00000, 86.44190); CreateObject(2276, -2238.41357, -2321.22705, 31.22160, 0.00000, 0.00000, 87.88970); CreateObject(2898, -2210.45996, -2338.42700, 29.60030, 0.00000, 0.00000, 46.50000); CreateObject(1650, -2230.69360, -2308.46289, 31.26450, 359.00000, 357.00000, 209.00000); CreateObject(1152, -2212.77954, -2335.15527, 31.26380, -12.00000, 0.00000, 47.00000); CreateObject(1010, -2214.30737, -2336.61572, 31.25520, 0.00000, 90.00000, 140.00000); CreateObject(1010, -2211.99463, -2338.88599, 29.87430, 0.00000, 90.00000, 20.80980); CreateObject(1010, -2211.36426, -2339.33862, 29.87430, 0.00000, 90.00000, 77.48920); CreateObject(1010, -2211.74609, -2339.21240, 29.87430, 0.00000, 90.00000, 50.31070); CreateObject(1818, -2211.50928, -2340.85938, 30.20000, 4.00000, 0.00000, -12.00000); CreateObject(1818, -2211.50928, -2340.85938, 29.70310, 4.00000, 0.00000, -4.00000); CreateObject(1829, -2212.34546, -2339.98438, 30.10000, 0.00000, 0.00000, 260.72681); CreateObject(18636, -2212.02515, -2339.92432, 30.61500, 0.00000, 0.00000, 94.67530); CreateObject(18644, -2211.03979, -2340.08740, 30.79270, 90.00000, 0.00000, 0.00000); CreateObject(18646, -2210.50562, -2341.21313, 30.78100, 5.00000, 0.00000, 0.00000); CreateObject(18663, -2213.09619, -2336.63770, 32.00000, 0.00000, 0.00000, 317.61292); CreateObject(18660, -2214.78223, -2342.60571, 31.49700, 0.00000, 0.00000, 225.13130); CreateObject(19420, -2209.39185, -2339.93506, 29.73020, 0.00000, 0.00000, 10.00000); CreateObject(19433, -2208.00586, -2340.37720, 31.53670, 0.00000, 0.00000, 315.11594); CreateObject(19433, -2209.11060, -2341.47583, 31.53670, 0.00000, 0.00000, 315.11594); CreateObject(19433, -2210.15698, -2342.51831, 31.53670, 0.00000, 0.00000, 315.11591); CreateObject(944, -2112.43286, -2406.06714, 31.09270, 0.00000, 0.00000, 320.99295); CreateObject(944, -2112.32935, -2409.52661, 31.01598, 0.00000, 0.00000, 0.00000); CreateObject(3604, -2184.78345, -2331.16724, 36.41290, 0.00000, 0.00000, 51.49000); CreateObject(18368, -2183.72827, -2332.40234, 36.83712, 0.00000, 0.00000, 314.64661); CreateObject(18452, -2213.38257, -2324.68970, 32.35880, 0.00000, 0.00000, 319.46710); CreateObject(1309, -2212.78906, -2349.78687, 32.23959, 0.00000, 0.00000, 231.28668); CreateObject(1734, -2213.53687, -2324.60498, 34.64160, 0.00000, 0.00000, 0.00000); CreateObject(1734, -2215.43872, -2325.09717, 29.61527, 0.00000, 0.00000, 0.00000); CreateObject(1756, -2214.12646, -2341.35571, 29.60200, 0.00000, 0.00000, 109.47060); CreateObject(1073, -2218.18506, -2336.31030, 30.62410, 0.00000, 0.00000, 44.29890); CreateObject(2002, -2229.50854, -2309.51172, 29.66400, 0.00000, 0.00000, 247.12050);
RemoveBuildingForPlayer(playerid, 1333, -2218.8828, -2336.2109, 30.4844, 0.25); RemoveBuildingForPlayer(playerid, 1333, -2213.9609, -2339.3047, 30.4844, 0.25); RemoveBuildingForPlayer(playerid, 1338, -2194.4531, -2329.0313, 30.3047, 0.25);
Code:
if(weaponid == 16) // The weapon ID //The number i add 16 is for gernade you can make plenty of lines and you can change the number if you want to so that people cant get the weapon reach them,,,if it reached them the player is banned public OnPlayerUpdate(playerid) { new weaponid = GetPlayerWeapon(playerid);//This ...!will cause the "weaponid not defined" Error new Nam[MAX_PLAYER_NAME]; new str[128]; if(weaponid == 16) // The weapon ID { GetPlayerName(playerid,Nam,sizeof(Nam)); format(str,sizeof(str),"ANTI WEAPON HACK: %s has been banned from server for spawning a bad weapon!",Nam); SendClientMessageToAll(0xFF0000FF,str);// Sends message to everyone BanEx(playerid,"ANTI WEAPON HACK: Weapon Hack!"); } //make another line if(weaponid == WEAPONID) // The weapon ID { GetPlayerName(playerid,Nam,sizeof(Nam)); format(str,sizeof(str),"ANTI WEAPON HACK: %s has been banned from server for spawning a bad weapon!",Nam); SendClientMessageToAll(0xFF0000FF,str);// Sends message to everyone BanEx(playerid,"ANTI WEAPON HACK: Weapon Hack!"); } return 1; } on |