Players may temporarily spawn a random weapon while entering a vehicle
#5

Where you can get the include: https://sampforum.blast.hk/showthread.php?tid=280549


I won't show lines of my whole weapon anti cheat, but I can show you a callback which does get called after almost every player update (only in case of weapon update)
pawn Code:
public OnPlayerWeaponDataChange(playerid, slot, oldweapon, newweapon)
{
    printf("Player ID %d spawned weapon ID %d on slot %d. Old: %d", playerid, newweapon, slot, oldweapon);
    return 1;
}
From the logs:
Code:
...
In Vehicle: Enforcer(8)
Player Vehicle Health: 998.41
AC Vehicle Health 1000.00
...
Holding Weapon: Tec9(1000)
Player Weapons:
N/A(0), Deagle(100), Tec9(1000)

AC Weapons:
N/A(0), Deagle(100), MP5(1000)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)