Police lights at regular vehicle
#1

hey im searching for anyone who can make me a script for police lights at regular cars. like police lights at a bullet or at a turismo.
i have been searching for a script like that for over a month now and all i can find is one on *******, but he doesn't show how to script it.

[ame]http://www.youtube.com/watch?v=4RRAVsdsSdA[/ame]

or like this one

[ame]http://www.youtube.com/watch?v=09E0jHC_c3Q&feature=related[/ame]

Please help me with this, i really want it.
Reply
#2

It's not a script, you can use AttatchObjectToVehicle or something, get the id of these lights, and it will most likely work
Reply
#3

Quote:
Originally Posted by Jari_Johnson*
Посмотреть сообщение
It's not a script, you can use AttatchObjectToVehicle or something, get the id of these lights, and it will most likely work
okey but the thing is that i dont really know how to do it, i meant how to use "AttatchObjectToVehicle". and i cant find the id of the lights.
Reply
#4

Quote:
Originally Posted by jake_peterson
Посмотреть сообщение
okey but the thing is that i dont really know how to do it, i meant how to use "AttatchObjectToVehicle". and i cant find the id of the lights.
Do you already use SA-MP 0.3e?
Reply
#5

Quote:
Originally Posted by Jari_Johnson*
Посмотреть сообщение
Do you already use SA-MP 0.3e?
no, why? do i need to do that?
Reply
#6

Quote:
Originally Posted by jake_peterson
Посмотреть сообщение
no, why? do i need to do that?
Well, because the light bar object is added in 0.3e, if you have lower, the object is not visible if i'm correct...

I can make a command anyways if you want it...
Reply
#7

okey thanks, really nice of you dude :P
Reply
#8

Quote:
Originally Posted by •K3N_
Посмотреть сообщение
Jari_Johnson* , you doing the same help to me i Rep+ you if this work for me too(I use 0.3d).
OK, i will post the new command in a few minutes, and , i'm affraid that the lights aren't visible in 0.3d, as they were added later, in 0.3e RC3..

Check back in a few mins

EDIT: here is the new code, please overwrite the old one!
pawn Код:
new lights;
CMD:coplight(playerid,params[])
{
    lights = CreateObject(19419,0.0,0.0,0.0,0.0,0.0,0.0,100.0);//use objectid 19419 or 19419, these are the light bars
    new vehicleid = GetPlayerVehicleID(playerid);
    AttachObjectToVehicle(lights, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);//play around with this coords a bit, i am not sure which coords are good...
    return 1;
}
CMD:removecoplights(playerid,params[])
{
    DestroyObject(lights);
    return 1;
}
You will need the #include <zcmd> for this... I uploaded it to my site, as I am not sure where the original thread is..
Download here((press right mouse button and select save target as..))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)