No reason for this not to work.
#7

pawn Код:
forward EngineOn(playerid);
public EngineOn(playerid)
{
    if(EngineStartStatus[playerid] == 3)
    {
        GameTextForPlayer(playerid, "~g~Engine Starting...", 1000, 5);
        EngineStartStatus[playerid] --;
    }
    if(EngineStartStatus[playerid] == 2)
    {
        GameTextForPlayer(playerid, "~g~Engine Starting..", 1000, 5);
        EngineStartStatus[playerid] --;
    }      
    if(EngineStartStatus[playerid] == 1)
    {
        EngineStartStatus[playerid] = 1;
        KillTimer(engineon);
        GameTextForPlayer(playerid, "~g~Engine Started.", 1000, 5);
        new vehicleid = GetPlayerVehicleID(playerid);
        GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
        SetVehicleParamsEx(vehicleid, 1, lights, alarm, doors, bonnet, boot, objective);
    }
    return 1;
}
That's what it should be as.


Also, take:

pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
if(EngineStartStatus[playerid] == 1)
    {
        GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
        SetVehicleParamsEx(vehicleid, 1, lights, alarm, doors, bonnet, boot, objective);
    }
from the /eon command and add it to the last part, as show above.
Reply


Messages In This Thread
No reason for this not to work. - by Dokins - 14.01.2012, 19:04
Re: No reason for this not to work. - by MP2 - 14.01.2012, 19:06
Re: No reason for this not to work. - by iGetty - 14.01.2012, 19:09
Re: No reason for this not to work. - by Dokins - 14.01.2012, 19:09
Re: No reason for this not to work. - by iGetty - 14.01.2012, 19:11
Re: No reason for this not to work. - by Dokins - 14.01.2012, 19:14
Re: No reason for this not to work. - by iGetty - 14.01.2012, 19:18
Re: No reason for this not to work. - by Dokins - 14.01.2012, 19:23
Re: No reason for this not to work. - by Scenario - 14.01.2012, 19:23
Re: No reason for this not to work. - by Dokins - 14.01.2012, 19:32

Forum Jump:


Users browsing this thread: 1 Guest(s)