problem with defined key - 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: problem with defined key (
/showthread.php?tid=593004)
problem with defined key -
DemME - 31.10.2015
Hey, so I have a small problem that I don't see how I can block it, when I wanna use "KEY_SPRINT" for example to enter some places, or even to open gates and such, it does. but it keeps to do so when the player brakes with the vehicle, I mean. how I do when I only press SPACE it will open door / gate and such, only. not when I brake with the vehicle.
thanks for helpers.
Re: problem with defined key -
Jefff - 31.10.2015
Block code
pawn Код:
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return 0;
// your code for open/close here