Siren Help -
euRo - 16.06.2011
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
Re: Siren Help -
Vince - 16.06.2011
AttachObjectToVehicle(siren[vehicleid], vehicleid, 0.0, 0.0, 2.0 , 0.0, 0.0, 0.0);
Re: Siren Help -
euRo - 16.06.2011
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?
Re: Siren Help -
euRo - 17.06.2011
bump
Re: Siren Help -
SpiderWalk - 17.06.2011
Which faction system do you using?
Re: Siren Help -
euRo - 17.06.2011
Norns, cRP, dont know why u asking??
Re: Siren Help -
SpiderWalk - 17.06.2011
Becouse i want to make my own and its GM from this forum or your own?
Re: Siren Help - Deskoft - 17.06.2011
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.
Re: Siren Help -
euRo - 17.06.2011
Anyone have a solution for it being able to attach properly with all vehicles. siren varies from in placement