AdminChat help
#2

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;
}
Reply


Messages In This Thread
AdminChat help - by Dr. Dre - 21.04.2012, 05:04
Re: AdminChat help - by sniperwars - 21.04.2012, 08:56

Forum Jump:


Users browsing this thread: 1 Guest(s)