[GM]I need help With KeyState Change - 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: [GM]I need help With KeyState Change (
/showthread.php?tid=466952)
[GM]I need help With KeyState Change -
donhu789 - 30.09.2013
pawn Код:
if(newkeys & KEY_CROUCH && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(VJUMP[playerid] == 1)
{
GetVehicleVelocity(GetPlayerVehicleID(playerid), xx, xy, xz);
SetVehicleVelocity(GetPlayerVehicleID(playerid), xx, xy, xz + 0.25);
}
}
}
i want whent i preass h ? but it say KEY_Crouch :\
Re: [GM]I need help With KeyState Change -
Konstantinos - 30.09.2013
The key is KEY_CROUCH. It's c key on foot and h/caps lock for vehicles.
Re: [GM]I need help With KeyState Change -
donhu789 - 30.09.2013
oh thanks KonStantinos