[FilterScript] Police Maverick Megaphone
#1

Police Maverick Megaphone


You probably know the police maverick w/ megaphone when you get 3 wanted stars in single-player, so yeah, I brought the megaphone feature into SAMP. I took all the megaphone sound ids (53 sound ids) including one from ''Reuniting the families'' mission. I won't provide a video of my own, so if you wanna hear the quotes, you can find them in this video: https://www.youtube.com/watch?v=mSSoramRw_I

This filterscript is configurable, you can enable the creation of the police mavericks that come by default with the FS in each police department, including their model, spawn delay and paint jobs.

Configuration

• #define HELICOPTER_MODEL (497) - By default it is the police maverick, but you can change it to any model. Also, remember that the model you define, is the model you will be able to use the megaphone on.

• #define SPAWN_PMAVERICKS (true) - Enables the creation of the mavericks included, if enabled, the configuration below in blue can be used.

   • #define SPAWN_LS (true) - Enables the creation of the mavericks included, in LS.
   • #define SPAWN_SF (true) - Enables the creation of the mavericks included, in SF.
   • #define SPAWN_LV (true) - Enables the creation of the mavericks included, in LV.

   • #define HELI_PJ1 (0) - Helicoper/Vehicle model's paint job 1.
   • #define HELI_PJ2 (1) - Helicoper/Vehicle model's paint job 2.

   • #define HELI_SD (15) - Helicoper/Vehicle spawn delay (in seconds).

Note: If enabled, they will have the same model as defined in HELICOPTER_MODEL

How to use?

Get inside a police maverick, or in that case, the model you defined, and press Y (KEY_YES) in your keyboard. You and people close to you (in a range of 50m) will hear it.

Includes
foreach 0.4.1 standalone: https://sampforum.blast.hk/showthread.php?tid=570868

Download (Recently updated, see below)
Pastebin

Update - 25/02/2017
Reply
#2

Good
Reply
#3

Nice!
Reply
#4

Quote:
Originally Posted by kristofgedeon
Посмотреть сообщение
Good
Quote:
Originally Posted by John252
Посмотреть сообщение
Awesome.
Quote:
Originally Posted by Henrik96
Посмотреть сообщение
Nice!
Thanks. Any suggestion is welcome.
Reply
#5

It is a good idea but I have some ideas for improvements.

Create a player textdraw to show which sound they have selected you can use other keys to scroll your array this also entails updating your sound array to an enum that includes all the megaphone strings in text. My view is if you have a good use for random then use it but random kind of sucks here and for 30 minutes work you could make this top notch.
Reply
#6

Quote:
Originally Posted by Pottus
Посмотреть сообщение
It is a good idea but I have some ideas for improvements.

Create a player textdraw to show which sound they have selected you can use other keys to scroll your array this also entails updating your sound array to an enum that includes all the megaphone strings in text. My view is if you have a good use for random then use it but random kind of sucks here and for 30 minutes work you could make this top notch.
https://www.youtube.com/watch?v=XWBOpeGs8HE


And textdraw for players with text from audio...
Reply
#7

This is neat, well done
Reply
#8

I have been busy, I only got to update it now.

The sound ids are no longer random, and you can select them. You must use /megaphone to show the textdraw while inside a police maverick (or the vehicle id you defined) be it in the driver or passenger seats.

http://imgur.com/a/Vp5CJ

Download:

Pastebin
Solidfiles

I-ZCMD is required: https://sampforum.blast.hk/showthread.php?tid=576114
Reply
#9

I like the improvements this turned into a pretty good release simple but concise the only other step would be to make it include compatible so that it can be compiled / used directly in gamemodes. All that means is if it's not a filterscript all the call backs need to be hooked and you will need to do some pre-compiler work.
Reply
#10

Quote:
Originally Posted by Pottus
Посмотреть сообщение
I like the improvements this turned into a pretty good release simple but concise the only other step would be to make it include compatible so that it can be compiled / used directly in gamemodes. All that means is if it's not a filterscript all the call backs need to be hooked and you will need to do some pre-compiler work.
Thanks, I might go for it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)