i need some cmd which can find if the player has two accounts
#1

i need some cmd which can find if the player has two accounts. by checking the ip.
with sscanf+zcmd pls
Reply
#2

Do u know about luxadmin ? It has a cmd /aka which does this job....
Reply
#3

i dont know
Reply
#4

Do you need it based on MySQL or through .ini or another version?
Reply
#5

not mysql but anything else
Reply
#6

help me
Reply
#7

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;
}
Reply
#8

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.
Reply
#9

ok i will use mysql give me the link to download it
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)