29.11.2013, 06:59
I created a Admin Chat System, and here you go:
missing plugins: Whirlpool sscanf streamer
Quote:
stock SendAdminMessage(color,string[]) { foreach (Player,i) { if(PlayerStat[i][AdminLevel] > 0) { SendClientMessage(i,color,string); } } return 1; } COMMAND:a(playerid, params[]) { new str[128], message[128]; if(PlayerStat[playerid][AdminLevel] < 1) return SendClientMessage(playerid, GREY, "You can't use this command."); if(sscanf(params,"s[128]", message)) return SendClientMessage(playerid, GREY, "USAGE: /a [admin message]"); format(str, sizeof(str), "{FF0000}[Admin] %s says: %s", GetOOCName(playerid), message); SendAdminMessage(RED, str); return 1; } |