10.10.2017, 22:31
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
Macro | ID |
MEGAPHONE_MAVERICK | 1 |
MEGAPHONE_PREDATOR | 2 |
MEGAPHONE_POLICECAR | 3 |
Function | Description |
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. |
PHP код:
#define MP_FOREACH_USAGE (true)
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
![](http://i.imgur.com/XqKE8yW.png)
Y - Goes up.
N - Goes down.
CTRL - Selects a sound.
Download
Github