10.02.2010, 07:47
Add a loop to OnPlayerConnect and use the same technique at OnPlayerDisconnect.
pawn Code:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerAdmin(i))
{
format(string,sizeof(string),"%s has joined the server",PlayerName(playerid));
SendClientMessage(i,COLOR_YELLOW,string);
}
}
}