SA-MP Forums Archive
Can you help me? - 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: Can you help me? (/showthread.php?tid=631513)



Can you help me? - Kraeror - 30.03.2017

Can you help me please?
I made helmet system to protect from sniper headshot, but when i SetPlayerAttachedObject helmet, this prevents me to look with sniper.
Any ideas, how can i hide this?


Re: Can you help me? - Dayrion - 30.03.2017

Hi.
You can remove the helmet when the player aim : OnPlayerKeyStateChange


Re: Can you help me? - Kraeror - 30.03.2017

Nice idea, but can i make to remove this just for player, who is targeting?


Re: Can you help me? - NaS - 30.03.2017

Quote:
Originally Posted by Kraeror
Посмотреть сообщение
Nice idea, but can i make to remove this just for player, who is targeting?
Not possible, attached objects are always visible to everyone.


Re: Can you help me? - Kraeror - 30.03.2017

Thank you!
+1 REP Dayrion.


Re: Can you help me? - Kraeror - 30.03.2017

Hey i have problem again! When it remove this object with OnPlayerKeyStateChange, i can't return this again .
How can i fix this?


Re: Can you help me? - Fairuz - 30.03.2017

Use this include
https://sampforum.blast.hk/showthread.php?tid=584708