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
#2

Nice Script
Reply
#3

Quote:
Originally Posted by Floul1
Nice Script
Thanks
Reply
#4

i will use it
Reply
#5

nice
Reply
#6

I used it on my test server It Plays Beautiful
Reply
#7

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;
   }
}
Reply
#8

Hi , For what its used?
Reply
#9

nice idea
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)