VH:RP Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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

Go down

SPU's [Special Police Units] [v4.0] [0.3c] Empty SPU's [Special Police Units] [v4.0] [0.3c]

Post by Edward Veatress Sun Mar 27, 2011 4:35 am

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:
[You must be registered and logged in to see this link.]

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


[You must be registered and logged in to see this link.]

Edward Veatress
Edward Veatress
E.M.S.
E.M.S.

Posts : 1003
Join date : 2010-12-23
Age : 27
Location : In a house..

https://vhrp.rpg-board.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum