SA-MP Forums Archive
auto-hold key - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: auto-hold key (/showthread.php?tid=549654)



auto-hold key - CoCo06 - 08.12.2014

Hi!
Is there any possible way to auto-hold a specific key for a player?
For example , even if the player doesn't hold LMB(left mouse button) , the server will "hold" that key for him... so the player will shoot.

I hope you understood and i‘m waiting for an answer, have a nice day!


Re: auto-hold key - Abagail - 08.12.2014

No there isn't. How-ever, you can send bullet data using YSF. Note that this is VERY VERY limited, and probably is buggy(can't confirm this).

But the simple answer would be no, you can't. You can how-ever force a robbery / aiming type animation, and shoot out a bullet-type object away from the player accordingly. You can then check if the object reaches 1.0 of an object, and or player, and then give the damage accordingly.


Re: auto-hold key - CoCo06 - 08.12.2014

Ok, that was what i wanted to know, thanks for your answer!


Re: auto-hold key - Doller - 08.12.2014

Auto hot key deffrent one for san andreas multiplayer key bind there write you point and you press there talk a switch that press. For example f2 clr and /me takes out his money from sam_smith pocket's