Two chat lines, how to avoid this ?
#1

Hey guys !

I have a little question about this :

pawn Код:
public newbie_sendMsg(color,const string[])
{
    for(new i = MIN_PLAYERID; i < MAX_PLAYERS_CURRENT+1; i++)
    {
        if(IsPlayerConnected(i))
        {
            if (pack_isAdmin(i,1) || PlayerVip[i][VipLevel] == 4 || PlayerInfo[i][pLevel] <= 18)
                {SendClientMessage(i, color, string);}
        }
    }
    return 1;
}

According to this, players with admin pack 1, vip level 4 and players with a level <=18 will receive the messages from the newbie chat.

The problem is that, if the player is an admin (pack 1 for example) and is under or equal level 18, he'll see 2 messages in the chatbox when he speak, but the others will see only one.
Example :

The admin name is XYZ, he'll see :
[19:38:22] [Admin] XYZ : Hi !
[19:38:22] [Admin] XYZ : Hi !

And the others people who have an access to this chat will see :
[19:38:22] [Admin] XYZ : Hi !

How may I avoid this ?

Thanks.
Reply


Messages In This Thread
Two chat lines, how to avoid this ? - by Kethrios - 24.01.2013, 14:33
Re: Two chat lines, how to avoid this ? - by DaRk_RaiN - 24.01.2013, 14:43
Re: Two chat lines, how to avoid this ? - by LarzI - 24.01.2013, 14:58
Re : Two chat lines, how to avoid this ? - by Kethrios - 24.01.2013, 15:11
Re: Two chat lines, how to avoid this ? - by LarzI - 24.01.2013, 15:21
Re: Two chat lines, how to avoid this ? - by DaRk_RaiN - 24.01.2013, 15:23
Re : Re: Two chat lines, how to avoid this ? - by Kethrios - 24.01.2013, 15:44
Re: Re : Re: Two chat lines, how to avoid this ? - by LarzI - 24.01.2013, 15:46
Re : Two chat lines, how to avoid this ? - by Kethrios - 24.01.2013, 16:12
Re : Two chat lines, how to avoid this ? - by Kethrios - 25.01.2013, 07:40

Forum Jump:


Users browsing this thread: 1 Guest(s)