SA-MP Forums Archive
[FilterScript] SPU's [Special Police Units] - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] SPU's [Special Police Units] (/showthread.php?tid=200372)

Pages: 1 2


SPU's [Special Police Units] [v4.0] [0.3c] - Geso - 18.12.2010

Another hello to you,

This time I used the new objects from 0.3c to make police lights on normal vehicles.

These cars can be spawned with a police light on the dashboard, or on the roof. It all works with a simple dialog which can be shown by typing /spu.

The lights can be put on and off by pressing the "2" key, (the submission-key). Note that the lights only work when it's dark, at daytime they will be turned off, unless you use some specific weatherid's, like i.e. 2.

New functions:
  • /destroyspu
    Destroys the SPU.
  • AddSPU(spuid, Float, Float:y, Float:z, Float:rotation, color1, color2, lightonoroff)
    Can be used to create a SPU without using the dialog, i.e. in OnFilterScriptInit.
  • ADMIN_USE and POLICE_USE
    ADMIN_USE --> Only admins can use /spu and /destroyspu
    POLICE_USE --> Only players with police skins can use /spu and /destroyspu
If you find any bugs, please report them to me.
-Lights will stop flashing when the vehicle drives at an angle, nothing to do about this, it's a GTA bug.

This will only work in 0.3c

Download links:
v4.0 on SolidFiles
v4.0 on PasteBin

Code:
Car list:
1  --- Sultan with lamp on dashboard.
2  --- Sultan with lamp on roof.
3  --- Cheetah with lamp on dashboard.
4  --- Cheetah with lamp on roof.
5  --- Washington with lamp on dashboard.
6  --- Washington with lamp on roof.
7  --- Premier with lamp on dashboard.
8  --- Premier with lamp on roof.
9  --- Huntley with lamp on dashboard.
10 --- Huntley with lamp on roof.
11 --- Buffalo with lamp on dashboard.
12 --- Buffalo with lamp on roof.
13 --- LSPD with lamp on dashboard.
14 --- LSPD with lamp on roof.
15 --- SFPD with lamp on dashboard.
16 --- SFPD with lamp on roof.
17 --- LVPD with lamp on dashboard.
18 --- LVPD with lamp on roof.
19 --- FireTruck
20 --- FBI-Truck
21 --- Towtruck
22 --- Stretch with lamp on dashboard.
23 --- Stretch with lamp on roof.
24 --- PCJ-600
25 --- FCR-900
26 --- Wayfarer
27 --- Super GT
28 --- Burrito with lamp on dashboard.
29 --- Burrito with lamp on roof.
30 --- BF Injection
31 --- Patriot
32 --- Barracks
33 --- Rhino








Re: SPU's [Special Police Units] - SkizzoTrick - 18.12.2010

Wow,simple but smart xD
Good job Geso!


Re: SPU's [Special Police Units] - MestreKiller - 18.12.2010

nice job


Re: SPU's [Special Police Units] - Geso - 18.12.2010

Thnx guys, and if you have any suggestions for more cars, please tell me.


Re: SPU's [Special Police Units] - SkizzoTrick - 18.12.2010

You could add some lights to the LSPD Choppers too xD


Re: SPU's [Special Police Units] - Geso - 18.12.2010

I think there would be a problem with the choppers, cause they would never fly horizontal. Lights will only work when they're in a horizontal position


Re: SPU's [Special Police Units] - GaGlets(R) - 18.12.2010

PASTEBIN !!!!!!! !!!!! !!!


Re: SPU's [Special Police Units] - SkizzoTrick - 18.12.2010

Quote:
Originally Posted by Geso
View Post
I think there would be a problem with the choppers, cause they would never fly horizontal. Lights will only work when they're in a horizontal position
Yea,ill try to test that,im curious!
Maybe some rhino's or the water tank xD


Re: SPU's [Special Police Units] - nielsbon1 - 18.12.2010

This works only in dark...


Re: SPU's [Special Police Units] - Geso - 18.12.2010

Quote:
Originally Posted by GaGlets®
Посмотреть сообщение
PASTEBIN !!!!!!! !!!!! !!!
Just download the normal script, shouldn't be so hard.


Quote:
Originally Posted by nielsbon1
Посмотреть сообщение
This works only in dark...
Yes it does.


Re: SPU's [Special Police Units] - nielsbon1 - 18.12.2010

Why i need this working on day light


Re: SPU's [Special Police Units] - Geso - 18.12.2010

It will never work in daylight because SA:MP only lets it work when it's dark, I can't do anything about it.


Re: SPU's [Special Police Units] - rooney12 - 18.12.2010

Nice! Good job!


Re: SPU's [Special Police Units] - Kuruskt - 18.12.2010

Why does it creates another car once I /spu on eg. Sultan?


Re: SPU's [Special Police Units] - Geso - 18.12.2010

Ehm, well, so you dont have to get yourself a sultan, it will spawn one

It's much easier this way


Re: SPU's [Special Police Units] - Zh3r0 - 18.12.2010

Quote:
Originally Posted by Geso
Посмотреть сообщение
Just download the normal script, shouldn't be so hard.




Yes it does.
IT AIN'T EASY WHEN YOU ARE USING SOME GOD DAMN FUCKEDUP UPLOADING SITES!!!

pastebin pl0x!


Re: SPU's [Special Police Units] - MestreKiller - 18.12.2010

pastebin:
http://pastebin.com/z9bdQJ3Z
now edit your thread and put this in it
and gimme me credits


Re: SPU's [Special Police Units] - Geso - 18.12.2010

Quote:
Originally Posted by Zh3r0
Посмотреть сообщение
IT AIN'T EASY WHEN YOU ARE USING SOME GOD DAMN FUCKEDUP UPLOADING SITES!!!

pastebin pl0x!
Ehm, alright, but I don't see what's wrong with the current links.

http://pastebin.com/BsJJECWB


Re: SPU's [Special Police Units] - Geso - 18.12.2010

Quote:
Originally Posted by [OC]MestreKiller
Посмотреть сообщение
pastebin:
http://pastebin.com/z9bdQJ3Z
now edit your thread and put this in it
and gimme me credits
Too late, mate


Re: SPU's [Special Police Units] - [TD]Torben - 18.12.2010

Can someone re-upload ?