21.01.2014, 19:29
Quote:
So,i put this code on that script ?
AttachObjectToVehicle(objectid, vehicleid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:RotZ); ?? Only ? |
you'll have to fill in all the params like coordinates first ofc.
here's an example of a cop siren on a sultan:
PHP код:
YCMD:attach(playerid, params[], help)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 560) return SendClientMessage(playerid,-1,"That's not a Sultan.");
new Float:p[3];
GetPlayerPos(playerid,p[0],p[1],p[2]);
new object = CreateObject(19419,p[0],p[1]-0.25,p[2]+0.82999,0,0,0);
AttachObjectToVehicle(object,GetPlayerVehicleID(playerid),0,-0.25,0.82999,0,0,0);
return 1;
}