Help Gm
#7

no, make a /engine command

Very simple

pawn Код:
new carengine[MAX_VEHICLES];
on top of ur script/\/\/\

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
Help Gm - by Dan_Barocu - 02.02.2012, 13:28
AW: Help Gm - by Drebin - 02.02.2012, 13:39
Re: Help Gm - by Dan_Barocu - 02.02.2012, 13:45
AW: Help Gm - by Drebin - 02.02.2012, 13:48
Re: Help Gm - by Dan_Barocu - 02.02.2012, 13:50
Re: Help Gm - by Dan_Barocu - 02.02.2012, 15:52
Re: Help Gm - by milanosie - 02.02.2012, 17:07
Re: Help Gm - by Dan_Barocu - 02.02.2012, 17:56
Re: Help Gm - by Dan_Barocu - 02.02.2012, 18:13

Forum Jump:


Users browsing this thread: 2 Guest(s)