Bug in script but don't know what.
#1

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[256];
    if(text[0] == '@')
    {
        format(string, sizeof(string), "[Team Admin Chat] %s[%i]: %s", pInfo[playerid][name], playerid, text[1]);

      for(new j = 0; j < MAX_PLAYERS; j++)
        {
            if(IsPlayerConnected(j) && pInfo[j][level] > 0) SendClientMessage(j, COLOR_NOTICE, string);
        }
        return 0;
    }
If normal players type @message all admins can read it. But the players can't. How to get it that they can't talk in the admin chat?
Reply


Messages In This Thread
Bug in script but don't know what. - by `FuTuRe- - 17.01.2010, 16:07
Re: Bug in script but don't know what. - by AiVAMAN - 17.01.2010, 16:11
Re: Bug in script but don't know what. - by AiVAMAN - 17.01.2010, 16:12
Re: Bug in script but don't know what. - by Burridge - 17.01.2010, 16:12
Re: Bug in script but don't know what. - by GTAguillaume - 17.01.2010, 16:13
Re: Bug in script but don't know what. - by AiVAMAN - 17.01.2010, 16:14
Re: Bug in script but don't know what. - by AiVAMAN - 17.01.2010, 16:20

Forum Jump:


Users browsing this thread: 1 Guest(s)