10.06.2012, 17:21
Hello.
This is the code
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...
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);
}
}
}
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...