[Help] Detecting keys while in textdraw selection mode - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] Detecting keys while in textdraw selection mode (
/showthread.php?tid=609483)
[Help] Detecting keys while in textdraw selection mode -
SteeLFelna - 13.06.2016
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.
Код:
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 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.
Re: [Help] Detecting keys while in textdraw selection mode -
SteeLFelna - 14.06.2016
bump