13.06.2016, 06:24
The point is that I want to detect the KEY_JUMP while in textdraw selection mode, but can not detect any key, while it is turned in SelectTextdraw(), when not turned all fine and detects key.
It is necessary that it is possible to detect key while selecting textdraws.
It is feasible because iPleomax's works on the same principle, it is possible to detect key while selecting on.
Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) { if(playertextid == someexample) { // dalji kod } return true; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(PRESSED(KEY_JUMP)) { RegistrationData[playerid][YearsNumber]--; format(years, sizeof years, "%d", RegistrationData[playerid][YearsNumber]); PlayerTextDrawSetString(playerid, RegisterTextdraw[playerid][7], years); } return true; }
It is feasible because iPleomax's works on the same principle, it is possible to detect key while selecting on.