Join/Quit Messages FAST
#2

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);
    }
  }
}
Reply


Messages In This Thread
Join/Quit Messages FAST - by Seppo1997 - 10.02.2010, 07:43
Re: Join/Quit Messages FAST - by ettans - 10.02.2010, 07:47
Re: Join/Quit Messages FAST - by mansonh - 10.02.2010, 07:48
Re: Join/Quit Messages FAST - by Seppo1997 - 10.02.2010, 08:24
Re: Join/Quit Messages FAST - by ettans - 10.02.2010, 08:33
Re: Join/Quit Messages FAST - by mansonh - 10.02.2010, 08:40
Re: Join/Quit Messages FAST - by Seppo1997 - 10.02.2010, 10:14

Forum Jump:


Users browsing this thread: 4 Guest(s)