ATC Tower Radio
#1

Код:
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.
Reply


Messages In This Thread
ATC Tower Radio - by Mobster11 - 01.08.2009, 09:17
Re: ATC Tower Radio - by Floul1 - 01.08.2009, 09:20
Re: ATC Tower Radio - by Mobster11 - 01.08.2009, 09:21
Re: ATC Tower Radio - by dafel2 - 01.08.2009, 09:22
Re: ATC Tower Radio - by DarkClone - 01.08.2009, 09:32
Re: ATC Tower Radio - by Floul1 - 01.08.2009, 09:33
Re: ATC Tower Radio - by Floul1 - 03.08.2009, 09:47
Re: ATC Tower Radio - by yah00078 - 09.08.2009, 14:37
Re: ATC Tower Radio - by LuxurioN™ - 09.08.2009, 18:25

Forum Jump:


Users browsing this thread: 1 Guest(s)