Lightbar Attachment Assistance - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Lightbar Attachment Assistance (
/showthread.php?tid=389796)
Lightbar Attachment Assistance -
nmader - 03.11.2012
Alright, so basically I am attempting to place a lightbar on an Admiral for my server's Sheriff's Department, however I can only get the lightbar when it is flashing to work (19419) but the lightbar when the lights are not flashing (19420) is not working. It seems highly unrealistic to have a flashing lightbar randomly appear and it seems as if it will be abused. I have used this, but it does not seem to work for the lightbar when it is not flashing:
pawn Код:
if(Vehicles[vehicleid][CarGroup] == 1)
{
switch(GetVehicleModel(vehicleid))
{
case 445:
{
AttachObjectToVehicle(sirenzoff, Vehicles[vehicleid][GameID], 0.0, -0.4, 0.84, 0.0, 0.0, 0.0);
}
}
}
All help is
greatly appreciated.
~Nmader
Re: Lightbar Attachment Assistance -
Drake_Lopez - 03.11.2012
Why not make a command for the sirens to appear? Like CMD
![confused](images/smilies/confused.gif)
irenson then check if it's an admiral then yeah? It maybe would be better?
Re: Lightbar Attachment Assistance -
AndreT - 03.11.2012
What's Vehicles[vehicleid][GameID] - asking just out of curiosity.
Everywhere else in the code you posted, you refer to and use "vehicleid", but now the array value? Are you sure these values are the same?
Re: Lightbar Attachment Assistance -
nmader - 03.11.2012
Quote:
Originally Posted by AndreT
What's Vehicles[vehicleid][GameID] - asking just out of curiosity.
Everywhere else in the code you posted, you refer to and use "vehicleid", but now the array value? Are you sure these values are the same?
|
I have no clue why I had put that, when the siren turns on it didn't have that line of code, testing now.