i need some cmd which can find if the player has two accounts -
mittukuttan - 25.02.2013
i need some cmd which can find if the player has two accounts. by checking the ip.
with sscanf+zcmd pls
Re: i need some cmd which can find if the player has two accounts -
rishabh1x - 25.02.2013
Do u know about luxadmin ? It has a cmd /aka which does this job....
Re: i need some cmd which can find if the player has two accounts -
mittukuttan - 26.02.2013
i dont know
Re: i need some cmd which can find if the player has two accounts -
[TC]XxJuggaloxX - 26.02.2013
Do you need it based on MySQL or through .ini or another version?
Re: i need some cmd which can find if the player has two accounts -
mittukuttan - 26.02.2013
not mysql but anything else
Re: i need some cmd which can find if the player has two accounts -
mittukuttan - 26.02.2013
help me
Re: i need some cmd which can find if the player has two accounts -
Blaeks - 26.02.2013
just create a command to getip from player
pawn Код:
CMD:getip(playerid, params[])
{
new igracevip[64];
new string[64];
new Igracname[MAX_PLAYER_NAME];
new PID;
GetPlayerName(playerid, Igracname, MAX_PLAYER_NAME);
GetPlayerIp(playerid,igracevip,sizeof(igracevip));
if(PlayerInfo[playerid][pAdmin] < 3) return SCM(playerid, -1, "you arent admin!");
if(sscanf(params, "u", PID)) return SCM(playerid, -1, "usage: getip [ID/name]");
if(!IsPlayerConnected(PID)) return SCM(playerid, -1, "he is offline!");
format(string,sizeof(string), "player: %s || IP: %s ", Igracname, igracevip);
SendClientMessage(playerid, RED, string);
return 1;
}
Re: i need some cmd which can find if the player has two accounts -
antonio112 - 26.02.2013
Quote:
Originally Posted by mittukuttan
help me
|
The thing is, you can't check OFFLINE accounts if you're not using MYSQL so, therefor, you can't really check if one player has more than one accounts.
That can be possible only with MYSQL.
It could be possible but it's a pretty 'hard' solution. Whenever a player registers an account, you create a file with his IP too in which you save the IP and account name. Then, using a command, you can get a players IP and then try to open the file with that IP. If the file exists, it means that there's another account on the same IP. Told you, this may not be the best solution but I don't see any other solution if you're not using MYSQL.
Re: i need some cmd which can find if the player has two accounts -
mittukuttan - 27.02.2013
ok i will use mysql give me the link to download it
Re: i need some cmd which can find if the player has two accounts -
[TC]XxJuggaloxX - 27.02.2013
Learn MySQL to be able to use it. You can download a script with MySQL built in etc. (As I assume you did with your current file system) However, you will not know how to use it properly. I recommend you learn to use MySQL. If you learn to use it, You will know how to do what you're asking to do here.