07.11.2009, 17:23
Needing some Help.
Hello, I've got a problem. I've already added cars into my script with the /engine command to start them.. But when added [FS] Carsystem by GermanReallife-Team, everything works fine except the /engine command.
Normally u have to do /engine as first to get your car started, but at the most cars on my script are already started and dont lose fuel (if i've got this cardealership filtership on). BUT if I typ 2 times /engine everything works normal again (losing fuel etc.) So question is, how to fix it? I want when people enter a car that they have to do /engine.
This is how my fuel command look likes, and this is the link to the Cardealership Script: http://forum.sa-mp.com/index.php?topic=78765.450 .
Can somone help me please, I'm confused.
Hello, I've got a problem. I've already added cars into my script with the /engine command to start them.. But when added [FS] Carsystem by GermanReallife-Team, everything works fine except the /engine command.
Normally u have to do /engine as first to get your car started, but at the most cars on my script are already started and dont lose fuel (if i've got this cardealership filtership on). BUT if I typ 2 times /engine everything works normal again (losing fuel etc.) So question is, how to fix it? I want when people enter a car that they have to do /engine.
This is how my fuel command look likes, and this is the link to the Cardealership Script: http://forum.sa-mp.com/index.php?topic=78765.450 .
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { if(DynamicCars[GetPlayerVehicleID(playerid)-1][CarType] != 1) { if(EngineStatus[GetPlayerVehicleID(playerid)] == 0) { SendClientMessage(playerid,COLOR_WHITE,"[Info:] Vehicle engine is not started (/engine)"); TogglePlayerControllable(playerid,0); } } if(DynamicCars[GetPlayerVehicleID(playerid)-1][FactionCar] != 255) { if(DynamicFactions[DynamicCars[GetPlayerVehicleID(playerid)-1][FactionCar]][fType] == 1) { if(PlayerInfo[playerid][pFaction] != DynamicCars[GetPlayerVehicleID(playerid)-1][FactionCar]) { RemoveDriverFromVehicle(playerid); } } }