21.11.2012, 19:07
When a player is toggled spectating, the keys N, H and Y can not be detected.
Tested width
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)
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 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)