01.04.2018, 05:39
Код:
public RadioBroadCast(playerid, color, string[]) { new MiscString[256], Float: aaaPositions[3]; new String[256], foreach(Player, i) { if(PlayerInfo[i][pRadioFreq] == PlayerInfo[playerid][pRadioFreq] && PlayerInfo[i][pRadio] >= 1 && gRadio[i] != 0) { GetPlayerPos(i, aaaPositions[0], aaaPositions[1], aaaPositions[2]); format(MiscString, sizeof(MiscString), "[WT:%d] {75AE5D}%s : %s", PlayerInfo[playerid][pRadioFreq], GetPlayerNameEx(playerid), string); SendClientMessageEx(i, COLOR_YELLOW, MiscString); format(MiscString, sizeof(MiscString), "[<WT>]\n* %s *", string); SetPlayerChatBubble(i, MiscString, 0x75AE5D00, 5.0, 5000); } if(AdminReadPm[i] == true) { format(MiscString, sizeof(MiscString), "[WT:%d] {75AE5D}%s : %s", PlayerInfo[playerid][pRadioFreq], GetPlayerNameEx(playerid), String); SendClientMessage(i, COLOR_YELLOW, MiscString); } } }