When someone joins , join message is bugged
#1

Hello.

This is the code

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && playerid != i)
        {
            if(PlayerInfo[i][pAdmin] > 1)
            {
                SendClientMessage(i,COLOR_GREEN,string);
                if(SendIP == 1)
                {
                    SendClientMessage(i,COLOR_GREEN,string2);
                    SendIP = 0;
                }
   }
   else
            {
                format(string,sizeof(string),"%s(%d) has joined.", plname, playerid);
                SendClientMessageToAll(COLOR_VIOLET,string);
            }
        }
    }
When someone joins, depending on the players it multiplies

like

[name] has joined united kingdom rp <-- 1/2 players


[name] has joined united kingdom rp
[name] has joined united kingdom rp <--- 3/4 players..
[name] has joined united kingdom rp

Im not sure what makes that happen...
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)