GetPlayerWeaponData bug retun?
#1

Hi,

I use for my anticheat GetPlayerWeaponData, it work perfectly. But sometime, if the player is a passanger ( and only), the fonction return weapon is id 23 instead of 24, or the function return weapon is id 24 instead of 23. Just for the C45/eagle/silenced.

Why that?
Reply
#2

up thx
Reply
#3

it's a bug sa:mp?
Reply
#4

the only times I've found it to be unreliable is when the player is dead or around vehicles, so yes it can return false data, however I haven't had any bugs with GetPlayerWeapon

edit: it can also return old data too
Reply
#5

thx. I think it return old data, but how to correct that?

Код:
GetPlayerWeaponData

if((Player_Weapons[slot] == 22 ||  Player_Weapons[slot] == 23) && Player_Ammos[slot] > 0 && Player_Ammos[slot] < 65535 && PlayerInfo[i][wep2] == 0)
{
       //ban
}
if(Player_Weapons[slot] == 24 &&  Player_Ammos[slot] > 0 && Player_Ammos[slot] < 65535 && PlayerInfo[i][wepeagle] ==0)
{
      //ban
}
//PlayerInfo[i][wep2] = 1 PlayerInfo[i][wepeagle] = 1 when a player give a weapon
Reply
#6

please?
Reply
#7

don't use GetPlayerWeaponData for banning players, use GetPlayerWeapon instead
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)