08.08.2011, 18:05
Quote:
Problem almost solved!
What I want now is to make admins NOT see the (Aka: ) if the players doesnt have any Aka. If anyone can help that would be perfect, but its good as it is Edit: Worked good on test server, on main server not. -.- |
pawn Код:
//==============================================================================
// Connect Messages
//==============================================================================
if(ServerInfo[ConnectMessages] == 1)
{
format(string,sizeof(string),"Player %s [ID:%d][Country:%s] has joined the server (Aka: %s)",PlayerName,playerid,GetPlayerCountryName(playerid),dini_Get("ladmin/config/aka.txt",tmp3));
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && playerid != i)
{
if(PlayerInfo[i][Level] >= 2 && PlayerInfo[i][Level] > 0)
SendClientMessage(i,grey,string);
else
{
format(string,sizeof(string),"* Player %s [ID:%d] has joined the server", PlayerName, playerid);
SendClientMessage(i,grey,string);
}
}
}
}