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

Quote:
Originally Posted by Seif_
Quote:
Originally Posted by AivaMan
Quote:
Originally Posted by Seif_
Add IsPlayerAdmin.
He uses
pawn Код:
pInfo[i][level]
instead of
pawn Код:
IsPlayerAdmin
Obviously not. Read his code.
Okay, then try this:

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 i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) && IsPlayerAdmin(i)) return SendClientMessage(i, COLOR_NOTICE, string);
        }
    }    
    return 0;
}
But then the message will be only visible to RCON Admins.
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: 3 Guest(s)