05.03.2012, 21:12
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)
From the logs:
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;
}
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)