ATC Tower 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: ATC Tower Radio (
/showthread.php?tid=89307)
ATC Tower Radio -
Mobster11 - 01.08.2009
Код:
new ATC[MAX_PLAYERS];
public OnPlayerText(playerid, text[])
{
if(text[0] == '!')
{
new string[256],name3[24];
GetPlayerName(playerid,name3,24);
format(string,256,"[ATC-Radio] %s: %s",name3,text[1]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(ATC[i] == ATC[playerid])
SendClientMessage(i, 0xB4B5B7AA, string);
}
}
return 0;
}
return 1;
}
dcmd(ATCR, 2, cmdtext);
dcmd_ATCR(playerid, params[])
{
if (params[0]=='\0') return SendClientMessage(playerid, COLOR_WHITE, "/cf [Frequency]");
ATC[playerid] = strval(params);
SendClientMessage(playerid, COLOR_WHITE, "You Changed Radio Frequency");
return 1;
}
All Credits To SWAT_TEAM Server
This script is nothing to do with SAP so what they have this on there server the only thing that counts is its made by me and the SWAT server.
Re: ATC Tower Radio -
Floul1 - 01.08.2009
Nice Script
Re: ATC Tower Radio -
Mobster11 - 01.08.2009
Quote:
Originally Posted by Floul1
Nice Script 
|
Thanks
Re: ATC Tower Radio -
dafel2 - 01.08.2009
i will use it
Re: ATC Tower Radio -
DarkClone - 01.08.2009
nice
Re: ATC Tower Radio -
Floul1 - 01.08.2009
I used it on my test server It Plays Beautiful
Re: ATC Tower Radio -
Floul1 - 03.08.2009
The Code Should be
Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '!')
{
new string[256],name3[24];
GetPlayerName(playerid,name3,24);
format(string,256,"[ATC-Radio] %s: %s",name3,text[1]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(ATC[i] == ATC[playerid])
SendClientMessage(i, 0xB4B5B7AA, string);
}
}
return 0;
}
}
Re: ATC Tower Radio -
yah00078 - 09.08.2009
Hi , For what its used?
Re: ATC Tower Radio -
LuxurioN™ - 09.08.2009
nice idea