KEY_JUMP also works when I press the S key?
#1

Hey guys, I've got a small problem. I'm working on a engine filescript and I want the engine to start when I press the SHIFT key [Default jump] but it seems like when I enter the vehicle if I press S or SPACE the engine starts ... Someone got any ideea how to fix this?

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
        if((oldkeys & KEY_JUMP) && !(newkeys & KEY_JUMP))
        {
                if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
                {
                        if(IsPlayerConnected(playerid))
                        {
                        new VID = GetPlayerVehicleID(playerid);
                        if(VehicleStarted[VID] == 0)
                        {
                        if(Starting[playerid] == 1) return 1;
                        SendClientMessage(playerid,-1,"Porneste motorul... ");
                        SetTimerEx("Start",1500,0,"i",playerid);
                        Starting[playerid] = 1;
                        }
                        }
                }
        }
        return 1;
}
Reply
#2

Because KEY_JUMP in vehicle is the brake (S).
Reply
#3

*FACEWALL* I just checked this ... Well ... Problem solved? Not sure, I'll edit if something appears.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)