Admin Chat
#4

Quote:
Originally Posted by Wesley221
Посмотреть сообщение
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(text[0] == '#' && PInfo[playerid][Level] <= 1) {
      new string[128]; GetPlayerName(playerid,string,sizeof(string));
        format(string,sizeof(string),"[ADMIN]%s: %s",string,text[1]);
        SendAdminMessage(red,string);
        return 0; // this will stop the callback, and wont show the message in the public chat
      }
      return 1;
}
Check the comment.
i thought that way too and havent tested it yet..i just want to see if this way would be valid ok thanks wesley i will try it out

EDIT:Now it doesnt even send message to admins :P
Reply


Messages In This Thread
[SOLVED]Admin Chat - by vassilis - 03.02.2012, 13:43
Re: Admin Chat - by -ExG-VirusKiller - 03.02.2012, 13:47
Re: Admin Chat - by Wesley221 - 03.02.2012, 13:47
Re: Admin Chat - by vassilis - 03.02.2012, 13:49
Re: Admin Chat - by Konstantinos - 03.02.2012, 13:52
Re: Admin Chat - by vassilis - 03.02.2012, 13:53
Re: Admin Chat - by Konstantinos - 03.02.2012, 13:55
Re: Admin Chat - by -ExG-VirusKiller - 03.02.2012, 13:56
Re: Admin Chat - by vassilis - 03.02.2012, 13:57
Re: Admin Chat - by Konstantinos - 03.02.2012, 14:01

Forum Jump:


Users browsing this thread: 4 Guest(s)