Closed Walter-Correa closed 8 years ago
The Sobeit sends invalid/fake data to the server which caused the crash. Added protection against invalid data in OnPlayerWeaponShot.
You may edit the public in the include if you'd want to take action on such players (maybe ban?).
[16:48:38] [debug] Run time error 4: "Array index out of bounds" [16:48:38] [debug] Accessing element at index 89 past array upper bound 16 [16:48:38] [debug] AMX backtrace: [16:48:38] [debug] #0 0002d058 in public OnPlayerWeaponShot (playerid=0, weaponid=111, hittype=240, hitid=65251, Float:fX=0.00024, Float:fY=0.00000, Float:fZ=18414358084370032000000000000.00000) [16:48:38] [warning] Invalid shot data for player(0). Offset out of bounds.
[16:54:30] [debug] Run time error 4: "Array index out of bounds" [16:54:30] [debug] Accessing element at negative index -22 [16:54:30] [debug] AMX backtrace: [16:54:30] [debug] #0 0002d058 in public OnPlayerWeaponShot (playerid=0, weaponid=0, hittype=152, hitid=14771, Float:fX=-93419805078758622000000000000000000000.00000, Float:fY=0.00000, Float:fZ=0.00013) [16:54:30] [warning] Invalid shot data for player(0). Offset out of bounds.
Testing with Skin Aimbot of Sobeit and not detected!