SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 10/10/2017, 11:31 PM   #1
Jelly23
Guest
 
Posts: n/a
Default Megaphone for police vehicles

Megaphone for police vehicles

This include allows you to use megaphones inside police vehicles. It works in gamemodes and filterscripts (If you are gonna use it in a filterscript, just make sure #define FILTERSCRIPT comes before the include). There is 4 functions available for use, and a total of 90 sound ids (51 for Police Maverick, 30 for predator and 9 for police car).

Megaphone IDs

MacroID
MEGAPHONE_MAVERICK 1
MEGAPHONE_PREDATOR 2
MEGAPHONE_POLICECAR 3

Functions

FunctionDescription
ShowMegaphoneForPlayer(playerid,Megaphone_id) Will enable/show the megaphone for a specific player.
HideMegaphoneForPlayer(playerid) Will hide/disable the megaphone for a specific player.
HideMegaphoneForAll() Will hide/disable the megaphone for everyone.
IsUsingMegaphone(playerid) returns 0 if the player isn't using it, otherwise, the megaphone id.

Foreach usage

PHP Code:
#define MP_FOREACH_USAGE (true) 
Foreach usage is enabled by default, just include it before the include if you wanna use it, otherwise set it to false.

Demonstration

Maverick: https://www.youtube.com/watch?v=7yxq0jpuqc0
Police car: https://www.youtube.com/watch?v=jfddpZfU7MU
Predator (Not really a predator, but who cares? It is just a demonstration): https://www.youtube.com/watch?v=g74wy5Z6xHc

Selection



Y - Goes up.
N - Goes down.
CTRL - Selects a sound.

Download

Github
  Reply With Quote
Old 11/10/2017, 05:42 PM   #2
Deadpoop
Big Clucker
 
Deadpoop's Avatar
 
Join Date: Jul 2016
Posts: 132
Reputation: 5
Default Re: Megaphone for police vehicles

nice
__________________
Deadpoop is offline   Reply With Quote
Old 11/10/2017, 07:49 PM   #3
n00blek
Huge Clucker
 
Join Date: Aug 2017
Location: England is my city
Posts: 249
Reputation: 18
Default Re: Megaphone for police vehicles

that is dope.
ur the best
__________________
RMTeam Roleplay! Under construction.

192.168.64.100:7777

PM me for donations(not money, script commands)
n00blek is offline   Reply With Quote
Old 12/10/2017, 04:33 AM   #4
Jelly23
Guest
 
Posts: n/a
Default Re: Megaphone for police vehicles

Quote:
Originally Posted by Deadpoop View Post
nice
Quote:
Originally Posted by n00blek View Post
that is dope.
Thanks.

Last edited by Jelly23; 15/10/2017 at 02:00 AM.
  Reply With Quote
Old 22/11/2019, 08:15 PM   #5
Emirto
Little Clucker
 
Emirto's Avatar
 
Join Date: Mar 2017
Location: In My computer
Posts: 30
Reputation: 0
Default Re: Megaphone for police vehicles

link please
__________________

Emirto_Calvini#5331
Emirto 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
[FilterScript] Police Maverick Megaphone Jelly23 Filterscripts 9 26/02/2017 12:54 PM
[HELP] How can i make police siren on other vehicles ? +REP 1 VenomMancer Scripting Help 3 30/11/2013 03:18 PM
Police vehicles Jordiee Scripting Help 10 24/11/2011 06:46 PM
only cops can enter police vehicles Black_Sun1 Help Archive 8 31/10/2010 08:24 PM


All times are GMT. The time now is 08:13 AM.


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