problem with engine
#2

this top of script:
pawn Код:
new carengine[MAX_VEHICLES];
this is the cmd:

pawn Код:
CMD:engine(playerid, param[])
{
    new vid = GetPlayerVehicleID(playerid);
    if(carengine[vid] == 1)
    {
        GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(vid,false,lights,alarm,doors,bonnet,boot,objective);
        carengine[vid] = 0;
    }
    else
    {
        GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(vid,true,lights,alarm,doors,bonnet,boot,objective);
        carengine[vid] = 1;
    }
    return 1;
}
Reply


Messages In This Thread
problem with engine - by mineralo - 03.02.2012, 18:40
Re: problem with engine - by milanosie - 03.02.2012, 18:49
Re: problem with engine - by mineralo - 03.02.2012, 19:00

Forum Jump:


Users browsing this thread: 1 Guest(s)