Lightbar Attachment Assistance
#1

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
Reply
#2

Why not make a command for the sirens to appear? Like CMDirenson then check if it's an admiral then yeah? It maybe would be better?
Reply
#3

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?
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)