SA-MP Forums Archive
OnPlayerKeyStateChange and spectating - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: OnPlayerKeyStateChange and spectating (/showthread.php?tid=441588)



OnPlayerKeyStateChange and spectating - DRIFT_HUNTER - 03.06.2013

OnPlayerKeyStateChange is not called if player is spectating (more precise in class selection)
Im working on a character creation system for a RP server.When someone request class and he is new i place him in spec mod.But than i can not detect his keys (and i rely need it).

Can someone confirm these bug
0.3x Server ( It does not show R1/R2 so it must be R1)


Re: OnPlayerKeyStateChange and spectating - redreaper666 - 04.06.2013

if the player is in class selection he hasnt even spawned right ?


Re: OnPlayerKeyStateChange and spectating - Pottus - 04.06.2013

It's not a bug, it's bad planning on your part.


Re: OnPlayerKeyStateChange and spectating - DRIFT_HUNTER - 06.06.2013

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
It's not a bug, it's bad planning on your part.
Are you kidding me...if its bad planning its for sure not on my part.

I even tried to spawn a player, and than with a few seconds delay put him in spectate mode,but it still does not detect keys...After some testing my conclusion is that its due to player state...is there any way that these could be fixed in near future?


Re: OnPlayerKeyStateChange and spectating - SDraw - 11.06.2013

Sorry, can't confirm. My server detects keys in spectate mode...