SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 18/12/2010, 09:02 AM   #1
Geso
Gangsta
 
Geso's Avatar
 
Join Date: Jan 2010
Location: Mauna Kea, Hawaii
Posts: 536
Reputation: 11
Thumbs up SPU's [Special Police Units] [v4.0] [0.3c]

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







Last edited by Geso; 26/02/2011 at 08:10 AM. Reason: v4.0
Geso is offline   Reply With Quote
Old 18/12/2010, 09:04 AM   #2
SkizzoTrick
Banned
 
Join Date: Aug 2010
Location: In your bed[if you are a girl]
Posts: 1,880
Reputation: 37
Default Re: SPU's [Special Police Units]

Wow,simple but smart xD
Good job Geso!
SkizzoTrick is offline   Reply With Quote
Old 18/12/2010, 09:05 AM   #3
MestreKiller
Banned
 
Join Date: Dec 2010
Posts: 128
Reputation: 0
Default Re: SPU's [Special Police Units]

nice job
MestreKiller is offline   Reply With Quote
Old 18/12/2010, 09:08 AM   #4
Geso
Gangsta
 
Geso's Avatar
 
Join Date: Jan 2010
Location: Mauna Kea, Hawaii
Posts: 536
Reputation: 11
Default Re: SPU's [Special Police Units]

Thnx guys, and if you have any suggestions for more cars, please tell me.
Geso is offline   Reply With Quote
Old 18/12/2010, 09:09 AM   #5
SkizzoTrick
Banned
 
Join Date: Aug 2010
Location: In your bed[if you are a girl]
Posts: 1,880
Reputation: 37
Default Re: SPU's [Special Police Units]

You could add some lights to the LSPD Choppers too xD
SkizzoTrick is offline   Reply With Quote
Old 18/12/2010, 09:12 AM   #6
Geso
Gangsta
 
Geso's Avatar
 
Join Date: Jan 2010
Location: Mauna Kea, Hawaii
Posts: 536
Reputation: 11
Default Re: SPU's [Special Police Units]

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
Geso is offline   Reply With Quote
Old 18/12/2010, 09:15 AM   #7
GaGlets(R)
Banned
 
Join Date: Oct 2009
Location: UK
Posts: 931
Reputation: 0
Default Re: SPU's [Special Police Units]

PASTEBIN !!!!!!! !!!!! !!!
GaGlets(R) is offline   Reply With Quote
Old 18/12/2010, 09:15 AM   #8
SkizzoTrick
Banned
 
Join Date: Aug 2010
Location: In your bed[if you are a girl]
Posts: 1,880
Reputation: 37
Default Re: SPU's [Special Police Units]

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
SkizzoTrick is offline   Reply With Quote
Old 18/12/2010, 09:28 AM   #9
nielsbon1
Huge Clucker
 
nielsbon1's Avatar
 
Join Date: May 2009
Location: Dutch/NL
Posts: 300
Reputation: 10
Default Re: SPU's [Special Police Units]

This works only in dark...
nielsbon1 is offline   Reply With Quote
Old 18/12/2010, 09:28 AM   #10
Geso
Gangsta
 
Geso's Avatar
 
Join Date: Jan 2010
Location: Mauna Kea, Hawaii
Posts: 536
Reputation: 11
Default Re: SPU's [Special Police Units]

Quote:
Originally Posted by GaGlets(R) View Post
PASTEBIN !!!!!!! !!!!! !!!
Just download the normal script, shouldn't be so hard.


Quote:
Originally Posted by nielsbon1 View Post
This works only in dark...
Yes it does.
Geso is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[AJUDA/INC] Onde posso arranjar o units.inc?? PatrickChucky Português/Portuguese 4 06/11/2010 10:38 PM
Car Units Callit Help Archive 10 23/09/2010 04:34 PM
A special area Hobod Help Archive 3 24/08/2010 09:31 AM
[PLZ HELP] Help With Special DM. Doppeyy Help Archive 0 22/08/2009 07:19 PM
Looking for that special someone deathil93 Everything and Nothing 2 26/04/2009 06:36 PM


All times are GMT. The time now is 03:06 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.