02.02.2012, 17:07
no, make a /engine command
Very simple
on top of ur script/\/\/\
Very simple
pawn Код:
new carengine[MAX_VEHICLES];
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;
}