[Include] Megaphone for police vehicles
#1

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 код:
#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
#2

nice
Reply
#3

that is dope.
ur the best
Reply
#4

Quote:
Originally Posted by Deadpoop
Посмотреть сообщение
nice
Quote:
Originally Posted by n00blek
Посмотреть сообщение
that is dope.
Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)