01.08.2009, 09:17
Код:
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; }
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.