OnPlayerConnect
#5

This is impossible with the regular RCON admin system and the reason has been told by Boelie
Quote:
Originally Posted by boelie
most admins log in 'after' they are connected.
But it is possible if you save if they are an admin in a file (Like a .ini file) And then checks if they are admin

Like you could make it easy and just make a file for your admins then it is just this code

pawn Код:
public OnPlayerConnect(playerid)
{
  new name[MAX_PLAYER_NAME],file[23],string[];
  GetPlayerName(playerid,name,sizeof(name));
  format(file,sizeof(file),"%s.ini",name);
  if(!fexist(file))
  {
    format(string,sizeof(string),"Player %s has joined the server",name);
    SendClientMessageToAll(0xFFFFFF,string);
    return 1;
    }
  else return 1;
}

This way works if you are using RCON admin system. If you want someone to be an admin you give him the code and make a .ini file in hes username. You don't have to add anything in the file, just the name matters here.

Then it will show a message if the username file do not exist and if it does it shows nothing.


But if you use a downloaded adminscript or made your own you will have to use another way
Reply


Messages In This Thread
OnPlayerConnect - by xxjackoxx - 12.03.2010, 08:38
Re: OnPlayerConnect - by boelie - 12.03.2010, 08:51
Re: OnPlayerConnect - by xxjackoxx - 12.03.2010, 09:00
Re: OnPlayerConnect - by GaGlets(R) - 12.03.2010, 09:22
Re: OnPlayerConnect - by Desert - 12.03.2010, 09:28
Re: OnPlayerConnect - by AiVAMAN - 12.03.2010, 09:48
Re: OnPlayerConnect - by gotenks918 - 12.03.2010, 09:50
Re: OnPlayerConnect - by AiVAMAN - 12.03.2010, 09:57
Re: OnPlayerConnect - by gotenks918 - 12.03.2010, 10:31

Forum Jump:


Users browsing this thread: 1 Guest(s)