Weapon Anti-Cheat pointers.
#1

EDIT: READ THE PROBLEM WITH THE CODE BELLOW.

Now, I have scripted these before, but it had one problem..

It had an array defined and it wrote into that array, like: WeaponData[playerid][slot] = weaponid;

The problem is. It.. Sometimes 'forgets' to write to it. In the debug window I keep seeing this:

"Stored weaponid 22 in slot 2 for player 0" (example)
"Checking Player 0's 2nd slot for weaponid 0"
"Player kicked."

Why is this happening?
This happens:
- When spawning legitimately(sometimes),
- When being in a car,
- When flying through the air.

Any SA-MP related bugs, or am I missing something out(Certain carids causing issues and such)?

Looking forward to your response.
Reply
#2

Could you please give us part of script where you set that WeaponData, and I have some similar bug with my ac, when player enter as passenger (G button) my ac get some weapon that player didn't spawned.
Reply
#3

Alright. But I deleted the anti-cheat, so I will re-code it and I'll post the code here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)