09.07.2013, 19:41
You're correct on that. If someone runs out of ammo, the variable is still on true so he can spawn with cheats the same weapon.
I'd recommend to reset the variable to false.
Long time ago, I made the same server-side weapons and it works perfect. It notices the admins whoever uses a weapons that is not register to the mode.
I'd recommend to reset the variable to false.
pawn Код:
// Loop through weapons - an example
if( GetPlayerWeaponState( playerid ) == WEAPONSTATE_NO_BULLETS )
{
// Reset the variable to false
}