Weapon hack check
#11

Quote:
Originally Posted by cessil
Посмотреть сообщение
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
I completely understand. I have also tried using GetPlayerWeapon instead of GetPlayerWeaponData to check every slot and every weapon with if and else if. It also gave me unexpected warnings. Smh, I'll sort it out some day. Thank you for the link and nice thread by the way, I'll be sure to get my head deep into it!
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: 6 Guest(s)