21.04.2012, 08:56
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '//' && PlayerInfo[playerid][Level] >= 1) { // '//' this will be used to activate the Admin chat. //Message
new string[128]; GetPlayerName(playerid,string,sizeof(string)); //New string, gets playername and formats string//
format(string,sizeof(string),"[ADMIN]: %s [ID:%d] %s",string,playerid,text[1]); //Output: [ADMIN]: Name [ID]: MSG//
MessageToAdmins(CHOOSE_YOUR_COLOR,string); //Choose your color to your preferred color//
return 0;
}