25.07.2018, 08:17
Quote:
Nothing works, i tried this way but it doesn't work either.
Код:
new vehicleid; if(GetVehicleModel(vehicleid) == 481 || 509 || 510) { new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vehicleid, true, lights, alarm, doors, bonnet, boot, objective ); } |
PHP код:
if(GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 509 ||GetVehicleModel(vehicleid) == 510)
PHP код:
new tempid= GetVehicleModel(vehicleid);
if(tempid== 481 || tempid == 509 || tempid == 510)
PHP код:
new vehicleid;
PHP код:
new vehicleid = GetPlayerVehicleID(playerid);
PHP код:
EnginedVehicle(carid)
{
switch(GetVehicleModel(carid))
{
case 400..480, 482..500, 502..508, 511..554, 556..563, 565..568, 571..583, 585..589, 592, 593, 595..605, 609: return true;
}
return false;
}
PHP код:
new vehicleid = GetPlayerVehicleID(playerid);
if(EnginedVehicle(vehicleid))
{
/*process*/
}