I Need!
#1

I wish that when a person who never set on the server, if it was her first time, announced to the entire server:
We have a beginner, NAME, welcome.
Reply
#2

Well, you could save everyones names into a file and then check if the player name is in that file but this would be a bit inefficient.
Reply
#3

Well if you have files for every player then you could search to see if they have a file, because if they don't then they're new.

pawn Код:
public OnPlayerConnect(playerid)
{
  new tmp[100];
  new pname[24];
  GetPlayerName(playerid,pname,24);
  format(tmp,100,"/users/%s.ini",pname);
  if(!fexist(tmp))
  {
    format(tmp,100,"Everyone please welcome %s to the server!",pname);
    SendClientMessageToAll(0xFFFFFFFF,tmp);
  }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)