14.12.2009, 13:21
Код:
if (PRESSED(KEY_JUMP)) { if(IsPlayerInAnyVehicle(playerid)) { 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 { EngineStatus[GetPlayerVehicleID(playerid)] = 0; PlayerActionMessage(playerid,15.0,"turns off the engine"); } } }