07.01.2016, 19:36
This is a bad way of doing that. You can simple use SetPlayerArmedWeapon( playerid, 0 ); which basically sets the players weapon to fist; you don't need to mess with weapon savings and that kind of stuff.
Also if you are concerned about someone spawning a weapon by cheating, just check if player is firing ( check if the fire key is pressed, doesn't require a timer either ) and apply SetPlayerArmedWeapon again. Simple, ain't it?
Also if you are concerned about someone spawning a weapon by cheating, just check if player is firing ( check if the fire key is pressed, doesn't require a timer either ) and apply SetPlayerArmedWeapon again. Simple, ain't it?