pInfo in filterscript
#9

The server is saving the player details using dini in .ini files which are located directly in the folder 'scriptfiles'. (the code is located in the gamemode.)

Now I would like to create a filterscript where it gets the player's adminrank. I don't know how to do this.

I think it should be like this, but it does not work.

Код:
Public OnPlayerConnect(playerid)
{
new Name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Name, sizeof(Name));
    new file[128];
    format(file,sizeof(file),"%s.ini", Name);
    if(dini_Exists(file))
    {

        PlayerInfo[playerid][pAdmin] = dini_Int(file,"AdminLevel");
    }
 	return 1;
}
Reply


Messages In This Thread
pInfo in filterscript - by mrxqware - 12.01.2014, 15:07
Re: pInfo in filterscript - by Mattakil - 12.01.2014, 15:09
Re: pInfo in filterscript - by SilentSoul - 12.01.2014, 15:12
Re: pInfo in filterscript - by mrxqware - 12.01.2014, 17:23
Re: pInfo in filterscript - by mrxqware - 12.01.2014, 19:28
Re: pInfo in filterscript - by xZdadyZx - 12.01.2014, 19:34
Re: pInfo in filterscript - by mrxqware - 12.01.2014, 21:13
Re: pInfo in filterscript - by mrxqware - 13.01.2014, 08:51
Re: pInfo in filterscript - by mrxqware - 13.01.2014, 13:29
Re: pInfo in filterscript - by Pottus - 13.01.2014, 13:37

Forum Jump:


Users browsing this thread: 1 Guest(s)