05.08.2015, 00:23
Okay, so I'm trying to get a police siren to a burrito vehicle and it seems like it doesn't work.
#include <ZCMD>
CMD:burrito(playerid, params[])
{
new
vehicleid = GetPlayerVehicleID(playerid);
AttachObjectToVehicle(CreateObject(19419, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), vehicleid, 255.44949, 1774.31165, 14.43670, 0.0, 0.0, 0.0);
return 1;
}
---------- in the map editor
CreateObject(19419, 255.44949, 1774.31165, 14.43670, 0.00000, 0.00000, 0.00000);
CreateVehicle(482, 255.4524, 1773.3035, 13.5286, 0.0000, -1, -1, 100);
-----------
Can someone help me how to attach it? It seems the script works, as it shows no errors, no nothing, but it's still bugged I guess or the coordinates aren't good or something. Thank you.
P.S: This is in the gamemode, not in filterscript.
http://s29.postimg.org/wlj3x16s7/pol...ht_vehicle.png
#include <ZCMD>
CMD:burrito(playerid, params[])
{
new
vehicleid = GetPlayerVehicleID(playerid);
AttachObjectToVehicle(CreateObject(19419, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), vehicleid, 255.44949, 1774.31165, 14.43670, 0.0, 0.0, 0.0);
return 1;
}
---------- in the map editor
CreateObject(19419, 255.44949, 1774.31165, 14.43670, 0.00000, 0.00000, 0.00000);
CreateVehicle(482, 255.4524, 1773.3035, 13.5286, 0.0000, -1, -1, 100);
-----------
Can someone help me how to attach it? It seems the script works, as it shows no errors, no nothing, but it's still bugged I guess or the coordinates aren't good or something. Thank you.
P.S: This is in the gamemode, not in filterscript.
http://s29.postimg.org/wlj3x16s7/pol...ht_vehicle.png


,y,z,angle, location + facing angle, COLOR 1, color 2, color ID's, -1 if you want vehicle not to respawn after a while and the last "1" to have a siren, 0 - No siren , 1- siren. If you want to make a command that creates a vehicle in front of the player just tell me. or if you want the vehicle to spawn somewhere, tell me and I will help ya' !