Weapon Anti-Cheat pointers. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Weapon Anti-Cheat pointers. (
/showthread.php?tid=406322)
Weapon Anti-Cheat Problem. -
Kaaajmak - 09.01.2013
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.
Re: Weapon Anti-Cheat pointers. -
CoaPsyFactor - 10.01.2013
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.
Re: Weapon Anti-Cheat pointers. -
Kaaajmak - 10.01.2013
Alright. But I deleted the anti-cheat, so I will re-code it and I'll post the code here.