30.09.2016, 19:08
(
Последний раз редактировалось ActionTanki91; 01.10.2016 в 10:04.
)
Like this :
Or use a stock for fast :
Код:
public OnPlayerText(playerid, text[]) { if(text[0] == '!') // Change symbol { if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] >= 1) { new string[256]; format(string, sizeof(string), "A.CHAT %s : %s", PlayerName(playerid), text[1]); for(new i, j = GetPlayerPoolSize(); i <= j; i++) { if(IsPlayerConnected(i) && PlayerInfo[i][pAdmin] >= 1) SendClientMessage(i, COLOR_PURPLE, string); } return 0; } } return 1; }
Код:
// stock by nogh445 stock SendAdminMessage(col, const string[]) { for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[i][pAdmin] >= 1) SendClientMessage(i, col, string); } return 1; }