12.12.2009, 02:10
Sorry for double posting :S ok so i got the command working and all but... like i made it to where when you hit the jump key you start the engine cause i have a engine script in my server now it works until you hit your brake key can you help me out??
heres the code
heres the code
Код:
if (PRESSED(KEY_JUMP)) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(EngineStatus[GetPlayerVehicleID(playerid)] == 0) { TogglePlayerControllable(playerid,1); EngineStatus[GetPlayerVehicleID(playerid)] = 1; PlayerActionMessage(playerid,15.0,"turns on the engine"); } else { TogglePlayerControllable(playerid,0); EngineStatus[GetPlayerVehicleID(playerid)] = 0; PlayerActionMessage(playerid,15.0,"turns off the engine"); } } }