Anti ammo hack
#4

I believe it's something to do with GetPlayerAmmo as it returns the old ammo so you need to subtract 1 from GetPlayerAmmo to get the new ammo. Also you should create a variable for the ammo and weapon slot instead of repeating the functions and these weaponid checks are not necessary because OnPlayerWeaponShot is only called when you shoot a gun, but I suggest you to check if the weaponid is not the minigun because it's fire rate is so fast that it will kick you whenever you shoot it and I also suggest you to create a variable for warnings. Everytime player shoots and has cheated ammo add 1 to the warnings variable and when it reaches 3 kick the player for example, but when player hasn't cheated ammo then subtract 1 from the warnings variable if there's something to subtract. That's what I do because this will prevent false kicks most of the time.
Reply


Messages In This Thread
Anti ammo hack - by oMa37 - 23.09.2017, 16:43
Re: Anti ammo hack - by Logic_ - 23.09.2017, 17:03
Re: Anti ammo hack - by oMa37 - 23.09.2017, 17:05
Re: Anti ammo hack - by GoldenLion - 23.09.2017, 19:55
Re: Anti ammo hack - by NaS - 24.09.2017, 08:55
Re: Anti ammo hack - by oMa37 - 24.09.2017, 12:19
Re: Anti ammo hack - by Kane - 24.09.2017, 12:51
Re: Anti ammo hack - by oMa37 - 24.09.2017, 13:05
Re: Anti ammo hack - by Paulice - 24.09.2017, 14:28
Re: Anti ammo hack - by AbyssMorgan - 27.09.2017, 17:16
Re: Anti ammo hack - by oMa37 - 27.09.2017, 17:45
Re: Anti ammo hack - by AbyssMorgan - 27.09.2017, 17:48
Re: Anti ammo hack - by oMa37 - 27.09.2017, 17:54
Re: Anti ammo hack - by AbyssMorgan - 27.09.2017, 17:56
Re: Anti ammo hack - by AbyssMorgan - 27.09.2017, 18:21
Re: Anti ammo hack - by oMa37 - 27.09.2017, 18:21
Re: Anti ammo hack - by jlalt - 27.09.2017, 18:26
Re: Anti ammo hack - by oMa37 - 27.09.2017, 18:42
Re: Anti ammo hack - by GaByM - 27.09.2017, 19:09
Re: Anti ammo hack - by oMa37 - 01.10.2017, 16:11
Re: Anti ammo hack - by AbyssMorgan - 01.10.2017, 16:15
Re: Anti ammo hack - by oMa37 - 01.10.2017, 16:21
Re: Anti ammo hack - by oMa37 - 02.10.2017, 11:51
Re: Anti ammo hack - by jlalt - 02.10.2017, 17:32
Re: Anti ammo hack - by xo - 02.10.2017, 19:15
Re: Anti ammo hack - by m4karow - 02.10.2017, 19:16
Re: Anti ammo hack - by xo - 02.10.2017, 19:19
Re: Anti ammo hack - by Evocator - 02.10.2017, 19:33
Re: Anti ammo hack - by m4karow - 02.10.2017, 20:04
Re: Anti ammo hack - by oMa37 - 03.10.2017, 04:39
Re: Anti ammo hack - by ToiletDuck - 03.10.2017, 06:24
Re: Anti ammo hack - by oMa37 - 03.10.2017, 11:49

Forum Jump:


Users browsing this thread: 1 Guest(s)