How to avoid people carry weapons without license - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to avoid people carry weapons without license (
/showthread.php?tid=617861)
How to avoid people carry weapons without license -
IndependentGaming - 27.09.2016
Hello, I'm trying to make something that if the person has no weapon license you cannot hold a weapon in your hand.
Do I need to make this under OnPlayerChangeWeapon ? and how do I start its maybe 1 line or so
Re: How to avoid people carry weapons without license -
Logic_ - 27.09.2016
unrealistic for RP.
Re: How to avoid people carry weapons without license -
IndependentGaming - 27.09.2016
Quote:
Originally Posted by ALiScripter
unrealistic for RP.
|
That is right, then tell me how can I make it if a player don't have a driving license and he steps in a vehicle that he gets slapped out and getting a message that he doesn't have a driving license ?
Re: How to avoid people carry weapons without license -
Vince - 27.09.2016
OnPlayerWeaponChange would probably be best, yes. Although unrealistic, as said. Same with cars. I'd probably implement something that changes velocity or direction ad random every so often, which would result in a very eradicate motion visible to other players. This to deter "inexperienced" drivers from driving while not actually inhibiting their ability to do so.