pInfo in filterscript
#7

Is there a way to do it like this?

Код:
 
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;
}
The user file is directly located in the folder 'scriptfiles'.

I would like to read the player's AdminLevel variable from the USER_NAME.ini file. Is this possible?
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: 2 Guest(s)