SA-MP Forums Archive
Disable shotgun from cop vehicle? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Disable shotgun from cop vehicle? (/showthread.php?tid=130943)



Disable shotgun from cop vehicle? - RSC_Quicker - 28.02.2010

Hey, is there a callback or something so I can disable this?


Re: Disable shotgun from cop vehicle? - 02manchestera - 28.02.2010

dont think so mybe you could block that shotgun only idea i have but i dont no how to do that.


Re: Disable shotgun from cop vehicle? - RSC_Quicker - 01.03.2010

Yea i already did that.


Re: Disable shotgun from cop vehicle? - dice7 - 01.03.2010

Use OnPlayerStateChange and check if vehicle which the player entered is the police ranger with GetVehicleModel. If it is, then use GivePlayerWeapon(playerid, shotgunid, negative value of the ammo you get if you enter a police ranger)


Re: Disable shotgun from cop vehicle? - RSC_Quicker - 01.03.2010

Well thanks but I made it in a timer.
Very simple. If a player got a gun with less then 10 ammo and more then 0 ammo it get removed.
Because all my guns are on 99999 or 0


Re: Disable shotgun from cop vehicle? - Dj_maryo1993 - 02.03.2010

sorry , ignore this post