GetPlayerWeaponState - False Readings
#1

Hello,

GetPlayerWeaponState seems to be giving off false readings.

I give a player a weapon (Desert) with atleast 100+ ammo and the weapon state returns NO_BULLETS.

Which is causing the array to be reset to 0 (weapon gone, set to 0). So if someone spawns the weapon = ban.
But it is coming up as NO_BULLETS causing bad anticheat readings.

Code: Removed - Don't want code stealers.

Anyone have an idea?

Regards
Reply
#2

save the ammo in variable
and the GetPlayerWeaponState function should return 2 things the weapon id and the ammo
Reply
#3

Quote:
Originally Posted by DaTa[X]
Посмотреть сообщение
save the ammo in variable
and the GetPlayerWeaponState function should return 2 things the weapon id and the ammo
No, you're talking about weapon DATA not STATE.

Anyway OP: I fixed it, I checked their ammo, if 0 = clear variable...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)