SA-MP Forums Archive
Unable Player Switch Weapons & fatal error - 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: Unable Player Switch Weapons & fatal error (/showthread.php?tid=583724)



Unable Player Switch Weapons & fatal error - TheRaGeLord - 30.07.2015

Hey, I've got 2 questions -

1)How to make a player unable to switch weapons. foreg, if he is holding SD Pistol(tazer) then he won't be able to switch weapons untill he type /unholdtazer
2)Why When I make a include and save it as .inc extension under Include folder. after that When I put eg. #inlcude <trl> then it gives error: unable to read from file 'trl'. However, there is a file named a strl with include format under Includes.


Re: Unable Player Switch Weapons & fatal error - youssefehab500 - 30.07.2015

Use this.
The SA:MP wiki even gives a basic tutorial on how to use it.
For your second question, which include do you mean?


Re: Unable Player Switch Weapons & fatal error - TheRaGeLord - 30.07.2015

Well.. This one OPSP


AW: Re: Unable Player Switch Weapons & fatal error - Kaliber - 30.07.2015

Quote:
Originally Posted by TheRaGeLord
Посмотреть сообщение
Well.. This one OPSP
Dude...omfg

This is so old, just use this callback: https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot


Re: Unable Player Switch Weapons & fatal error - TheRaGeLord - 30.07.2015

Oh Thanks