KEY_UP not detecting in vehicle - 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: KEY_UP not detecting in vehicle (
/showthread.php?tid=608023)
KEY_UP not detecting in vehicle -
Ultrascipter - 26.05.2016
Hello everyone
PHP код:
new Keys, UpDown, LeftRight;
GetPlayerKeys(playerid, Keys, UpDown, LeftRight);
if(UpDown == KEY_UP)
{
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) SendClientMessageToAll(COLOR_LIGHTBLUE, "7");
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) SendClientMessageToAll(COLOR_LIGHTBLUE, "0");
}
In vehicle, don't show message "0".
Why ?
Re: KEY_UP not detecting in vehicle -
justjamie - 26.05.2016
wat .
Re: KEY_UP not detecting in vehicle -
Ultrascipter - 26.05.2016
Sorry for my English.
I say that in his vehicle does not message.
Re: KEY_UP not detecting in vehicle -
ilijap - 26.05.2016
UP/DOWN keys are only from arrows i think.