[SOLVED] How to make a Simple Police Radio? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED] How to make a Simple Police Radio? (
/showthread.php?tid=106440)
[SOLVED] How to make a Simple Police Radio? -
FreddeN - 03.11.2009
Hello Everyone.
As the title says, I want a simple police radio that sends a message to a special team nummber.
This is my Team PM script, is it possible to turn this into a Police Radio, the Police Team number is 8.
Код:
if (strcmp("/tpm", cmdtext, true, 4) == 0)
{
new str[128],pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
format(str,sizeof(str),">>TPM (%s):%s",pName,cmdtext[4]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(GetPlayerTeam(i) == GetPlayerTeam(playerid))
{
SendClientMessage(i,0xFFFF22AA,str);
}
}
return 1;
}
Thanks for the help