Weapon hack check
#10

Quote:
Originally Posted by iamjems
View Post
I have a deagle.

I type in /tazer.

It removes the deagle, gives me a silenced pistol, a warning pops up that I may be hacking a deagle.

This is getting out of control.
yes as expected, things that happen in online games are not instant, they take time.
when you set a variable it's instant, when you give someone a weapon data has to travel to their client and then the client sets the right weapon.

GetPlayerWeapon doesn't query the players client, it returns data previously sent by the client.
So when you give a player a deagle and then give them a silenced pistol the script says they should have a silenced pistol, but using GetPlayerWeaponData right under it will return a deagle since you're reading old data, you have to give the client time to update to the server, what I used to do was check every second but only warn on 5 and 10 seconds, then kick them at 15 seconds

for more reading
https://sampforum.blast.hk/showthread.php?tid=220089
Reply


Messages In This Thread
Weapon hack check - by iamjems - 29.12.2016, 14:23
Re: Weapon hack check - by HydraHumza - 29.12.2016, 14:43
Re: Weapon hack check - by iamjems - 29.12.2016, 15:38
Re: Weapon hack check - by denNorske - 29.12.2016, 23:01
Re: Weapon hack check - by iamjems - 30.12.2016, 01:20
Re: Weapon hack check - by denNorske - 30.12.2016, 01:55
Re: Weapon hack check - by iamjems - 30.12.2016, 10:08
Re: Weapon hack check - by iamjems - 30.12.2016, 10:53
Re: Weapon hack check - by BlackBank - 30.12.2016, 14:30
Re: Weapon hack check - by cessil - 30.12.2016, 14:45
Re: Weapon hack check - by iamjems - 30.12.2016, 18:17
Re: Weapon hack check - by iamjems - 19.02.2017, 16:27

Forum Jump:


Users browsing this thread: 3 Guest(s)