problem with defined key
#1

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.
Reply
#2

Block code
pawn Код:
if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT) return 0;
// your code for open/close here
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)