18.04.2016, 07:37
In my own gamemode, every weapon on the server is unique. All weapons are stored in a MySQL table with unique IDs, ammo, owners and weaponid.
OnPlayerWeaponShot then checks if the user is using a registered gun in the table or not. Should a player not use a registered gun = permaban.
OnPlayerTakeDamange also resets all incoming damange and gives it out scriptwise accordingly to what Caliber the weapon has in the table and according to what hitbox is hit.
OnPlayerWeaponShot then checks if the user is using a registered gun in the table or not. Should a player not use a registered gun = permaban.
OnPlayerTakeDamange also resets all incoming damange and gives it out scriptwise accordingly to what Caliber the weapon has in the table and according to what hitbox is hit.