SA-MP Forums Archive
Shift key 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: Shift key in vehicle (/showthread.php?tid=285700)



Shift key in vehicle - PrawkC - 25.09.2011

So, I understand that shift in a vehicle is different than what it is on foot, on I downloaded a GF edit that had engine starting using shift, its done the exact way I've done it in my Vortex 2 edit, and yet it still refuses to work, shift in a car, seems to be "s", but in the GF edit, it works a shift.. Any suggestions?


Re: Shift key in vehicle - [HiC]TheKiller - 25.09.2011

Remember that you can only use keys that are assigned to San Andreas Actions. If the shift key is assigned to something when the player is in the car then it will work. Here is a list of keys https://sampwiki.blast.hk/wiki/GetPlayerKeys.


Re: Shift key in vehicle - PrawkC - 25.09.2011

I've looked through that list before, My point is this GF edit can use "shift" but in my script I can't

What ever, not worth the time, going to use something else.


Re: Shift key in vehicle - dice7 - 25.09.2011

A way to find out which key value is shift, when in a vehicle is with this code

pawn Код:
public OnPlayerUpdate(playerid)
{
    new keys, ud, lr, str[20];
    GetPlayerKeys(playerid, keys, ud, lr);
    format(str, 20, "Value: %d", keys);
    SendClientMessage(playerid, 0xFFFFFFFF, str)
    return 1;
}
Get in a car, press shift and use that value in your code