24.01.2013, 14:33
Hey guys !
I have a little question about this :
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.
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.