Siren Help
#1

I recently had a idea.
To put siren "objects" on to civ cars. for FBI etc.

ALthough, i keep getting errors "array mismatch"

How does one do this

new siren[MAX_VEHICLES];

if(strcmp(cmd, "/siren", true) == 0)
{
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
{
new vehicleid = GetPlayerVehicleID(playerid);
siren[vehicleid] = CreateObject(18646, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(siren, vehicleid, 0.0, 0.0, 2.0 , 0.0, 0.0, 0.0);
}
else SendClientMessage(playerid, COLOR_LSPD, "You may not use this Command!");
return 1;
}

And im not sure how to do it yet, im just trying.

Can somebody help me or point me in the right direction
Reply
#2

AttachObjectToVehicle(siren[vehicleid], vehicleid, 0.0, 0.0, 2.0 , 0.0, 0.0, 0.0);
Reply
#3

Works! THANKS.. but cant seem to get the X,Y,Z offset perfect. any help? to be in the front dashboard of the car... because majority of cars are different, is there a way around this?

And, how does one make a sound for siren or isnt it possible with out a audio plugin?
Reply
#4

bump
Reply
#5

Which faction system do you using?
Reply
#6

Norns, cRP, dont know why u asking??
Reply
#7

Becouse i want to make my own and its GM from this forum or your own?
Reply
#8

He's asking for the offset, nothing related to the faction system.
I don't really know the answer, but I usually play with the offsets.

EDIT: Don't ask that type of questions, instead PM him, he's asking a question, your question is really out of the topic.
Reply
#9

Anyone have a solution for it being able to attach properly with all vehicles. siren varies from in placement
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)