17.05.2013, 12:12
i found this command to put policelights on any vehicle but it doesnt saves them afer restart ets.. so how can i make save them
CMD:coplight(playerid,params[])
{
lights = CreateObject(19419,0.0,0.0,0.0,0.0,0.0,0.0,100.0);//use objectid 19419 or 19419, these are the light bars
new vehicleid = GetPlayerVehicleID(playerid);
AttachObjectToVehicle(lights, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);//play around with this coords a bit, i am not sure which coords are good...
return 1;
}
CMD:removecoplights(playerid,params[])
{
DestroyObject(lights);
return 1;
}
CMD:coplight(playerid,params[])
{
lights = CreateObject(19419,0.0,0.0,0.0,0.0,0.0,0.0,100.0);//use objectid 19419 or 19419, these are the light bars
new vehicleid = GetPlayerVehicleID(playerid);
AttachObjectToVehicle(lights, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);//play around with this coords a bit, i am not sure which coords are good...
return 1;
}
CMD:removecoplights(playerid,params[])
{
DestroyObject(lights);
return 1;
}