SA-MP Forums Archive
Player A.K.A (As Known As) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Player A.K.A (As Known As) (/showthread.php?tid=420306)



Player A.K.A (As Known As) - ]Rafaellos[ - 04.03.2013

Hi, i am using LuXAdmin at the moment but i am developing my own Administrator System. I'm using Y_Ini for saving the player data. Is their any way to find if the player have an second account?

NOTE: Please don't give me the LuXAdmin one.


Re: Player A.K.A (As Known As) - [MG]Dimi - 04.03.2013

On Connect save his username under his password in file (example Aka.txt). Then when you want to check does he have another account load accounts used by that IP.


Re: Player A.K.A (As Known As) - Jewell - 04.03.2013

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
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;
}
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


Re: Player A.K.A (As Known As) - ]Rafaellos[ - 04.03.2013

I don't understand what you mean ;S