samp-weapon-config
samp-weapon-config copied to clipboard
Suggestion for the c-bug allowance
Hello,
We can enable c-bug per-player or globally, which was a very useful addition. Thank you for that.
As you know, the c-bug system may have some false positives sometimes. For example, when you press C while shooting an M4. It will freeze you and switch your weapon. Putting WC aside, this seems to be an issue which is present in all c-bug prevention scripts and there doesn't seem to be a proper work around.
Since c-bugging with M4 is practically useless, I say we should have a function which allows us to control which weapons are allowed to c-bug with and which ones are not.
It would be a great addition because some servers may want to allow per-weapon c-bug for specific occasions but disable it for a different weapon. It could also have a per-player parameter as well.
Vouched. I'll look into if I get some time.
You could do that your self, using OnPlayerUpdate
you could detect a weapon change, and if that weapon happens to be deagle, or sniper etc, you could use the functions provided to enable/disable it like that.
Maybe in the future this could be implemented directly, but as a work around I think the suggestion I gave will do.