21.12.2010, 15:44
There is no that function for now, but you can make one by your own.
And then you can use it like that.
pawn Код:
GetVehicleHeightForSiren(vehicleid)
{
modelid = GetVehicleModel(vehicleid);
switch(modelid)
{
case 400: return 5.0;
case 550: return 6.0;
}
return -1;
}
pawn Код:
new vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
new siren = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(siren, vehicleid, 0.0, 0.0, GetVehicleHeightForSiren(vehicleid), 0.0, 0.0, 0.0);