N, H, Y can not be detected while spectating
#1

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)
Reply
#2

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
Reply
#3

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

...
Reply
#4

Код:
Try using this
//nvm
Reply
#5

Confirmed...It's a pity
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)