19.06.2015, 06:22
This is for those cops that are always complaining that their radio system doesn't feel good enough
Although players cannot communicate with each other through the radio, they can hear a live feed from LAPD
So let's get straight into this
For the sake of this tutorial i'll be using ZCMD, of course if you know the basics of scripting, you can easily convert it to strcmp or whatever other command parser you use
Now, these variables might be different from yours, if they are, simply look for the correct ones in the script and change them
This next code can be useful for all players as it stops all sounds, including the radio
Although players cannot communicate with each other through the radio, they can hear a live feed from LAPD
So let's get straight into this
For the sake of this tutorial i'll be using ZCMD, of course if you know the basics of scripting, you can easily convert it to strcmp or whatever other command parser you use
Now, these variables might be different from yours, if they are, simply look for the correct ones in the script and change them
Code:
CMD:pron(playerid, params[]) { if(IsACop) // Change this if you don't have this defined in your server { PlayAudioStreamForPlayer(playerid, http://www.broadcastify.com/scripts/play...778168.asx); // Feel free to change to whatever department you want, this is Long Beach Police Dispatch SendClientMessage(playerid, COLOR_GREEN, "You reach over to your duty belt/car feed and turn on the knob."); // If you don't have the color defined, it's 0x33AA33AA } return 1; }
Code:
CMD:stopallsound(playerid, params[]) { StopAudioStreamForPlayer(playerid); return 1; }