Problem with engine start
#6

pawn Code:
if(strcmp("/moteur", cmdtext, true) == 0)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new vid = GetPlayerVehicleID(playerid);
        GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
        if(engine == VEHICLE_PARAMS_ON)
        {
            SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
            PlayerPlaySound(playerid, 1022, 0.0, 0.0, 0.0);
            GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~y~Le moteur se ~r~ferme..", 3000, 3);
        }
        else
        {
            SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
            PlayerPlaySound(playerid, 1021, 0.0, 0.0, 0.0);
            GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~y~Le moteur ~g~s'allume..", 3000, 3);
        }
    }
    return 1;
}
Reply


Messages In This Thread
[SOLVED]Problem with engine start - by Vukilore - 18.02.2011, 12:46
Re: Problem with engine start - by OKStyle - 18.02.2011, 12:49
Re : Problem with engine start - by Vukilore - 18.02.2011, 12:55
Re: Problem with engine start - by OKStyle - 18.02.2011, 16:57
Re: Problem with engine start - by DRIFT_HUNTER - 18.02.2011, 17:20
Re: Problem with engine start - by MadeMan - 18.02.2011, 18:07
Re : Re: Problem with engine start - by Vukilore - 19.02.2011, 07:53

Forum Jump:


Users browsing this thread: 1 Guest(s)