04.03.2013, 14:41
i'm also making new adminscript system using y_ini. i already made a aka system. it's not hard create a aka system with y_ini.
in dini you can directly read data from a file. but if you are using yini you have to read data from a file and store it to a variable first.
basically i'm doing this
and then check the player name in aka string. if string length is 0(aka) it means player doesn't have an accounts by that ip. improve it yourself with y_ini tutorial
in dini you can directly read data from a file. but if you are using yini you have to read data from a file and store it to a variable first.
basically i'm doing this
pawn Код:
new aka[128],playerIP[16];//on top
//onplayerconnect
GetPlayerIp(playerid,playerIP,16);
format(file,sizeof(file),"aka.ini"); //aka
INI_ParseFile(file,"GetNicks");
//
public GetNicks(name[], value[])
{
INI_String(playerIP,aka,128);
return 1;
}
