SA-MP Forums Archive
N, H, Y can not be detected while 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: N, H, Y can not be detected while spectating (/showthread.php?tid=394261)



N, H, Y can not be detected while spectating - ikkentim - 21.11.2012

When a player is toggled spectating, the keys N, H and Y can not be detected.

Tested width
Код:
TogglePlayerSpectating(playerid, 1);

//...

public OnPlayerUpdate(playerid)
{
	new keys,ud,lr;
	GetPlayerKeys(playerid,keys,ud,lr);
	printf("OnPlayerUpdate keys: %d", keys);
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	printf("OnPlayerKeyStateChange: %d", newkeys);
}
When not spectating, they show up in the log.
When spectating, they don't show up in the log.

While spectating, all other detectable keys are detectable:
https://sampwiki.blast.hk/wiki/GetPlayerKeys


Sounds to a bug like me, and it's hard to make a workaround (basically , you can't set a player to spectating when wanting to detect the CONVERSATION_YES and CONVERSATION_NO keys)


Re: N, H, Y can not be detected while spectating - ScRaT - 21.11.2012

from the wiki page
[**] Supported since 0.3d. Not detectable in earlier versions. This key can not be detected when the player is set to spectating mode


Re: N, H, Y can not be detected while spectating - ikkentim - 22.11.2012

Quote:
Originally Posted by ScRaT
Посмотреть сообщение
from the wiki page
[**] Supported since 0.3d. Not detectable in earlier versions. This key can not be detected when the player is set to spectating mode
https://sampwiki.blast.hk/wroot/index.ph...action=history

...


Re: N, H, Y can not be detected while spectating - CoaPsyFactor - 22.11.2012

Код:
Try using this
//nvm


Re: N, H, Y can not be detected while spectating - SDraw - 23.12.2012

Confirmed...It's a pity