Multi account & Ban evade -
Sh4d0w2 - 18.12.2015
I have an txt that save multi account data per IP ( /aka cmd )
1. I want to know how can I make an auto-check if any player join my server, It will check the player IP from the txt that I mention above, and it will show a dialog to any admin onlines that this player have multi-account and show all his/her accounts that already exist.
2. I want to know how can I make a cmd that load the txt, If one of their old account was banned,t will show a dialog to any admin onlines that this player was banned before. ( Ban Evade )
By the way Im using ladmin :
PHP код:
CMD:aka(playerid,params[])
{
if(PlayerInfo[playerid][Level] >= 3 || IsPlayerAdmin(playerid))
{
if(isnull(params)) return SendClientMessage(playerid, red, "USAGE : {FFFFFF}/aka [ID]");
new player1, playername[MAX_PLAYER_NAME], str[128], tmp3[50];
player1 = strval(params);
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
{
GetPlayerIp(player1,tmp3,50);
GetPlayerName(player1, playername, sizeof(playername));
format(str,sizeof(str),"%s [%d] [%s] %s", playername, player1, tmp3, dini_Get("ladmin/config/aka.txt",tmp3));
return SendClientMessage(playerid,COLOR_PURPLE,str);
}
else return SendClientMessage(playerid, red, "Player is not connected or is yourself");
}
else return SendClientMessage(playerid,red,"Invalid Command ! Use {FFFFFF}/cmds");
}
Re: Multi account & Ban evade -
Sh4d0w2 - 19.12.2015
BUMP
Re: Multi account & Ban evade -
Abagail - 19.12.2015
Using MySQL for this purpose is a way better idea, even if you integrate it different than your accounts. The usage of SQLite would be just as effective. You can do this by registering the name of player files upon player register along with the IP(it may also be a good idea to keep the IP updated so you can get the most up-to-date information).
Re: Multi account & Ban evade -
Sh4d0w2 - 19.12.2015
Im still learning basic of MySQL & this pwn project is all DINI.So it will take a long times to change this project to MySQL.I know the question I asked can be done with DINI,so that's why Im asking you guys to help me.
Re: Multi account & Ban evade -
Abagail - 19.12.2015
If you carefully read my post, you'll know that this can be done without changing your account system to MySQL. Simply create an SQL table with the name of player files and their respective IP addresses so you can SELECT all accounts linked to that IP. Make sure the table is updated when names change, etc.
SQLite is a good platform to use if you do not want to host a full-on SQL server. For more information on the SA-MP implementation of SQLite, check out the following tutorials:
https://sampforum.blast.hk/showthread.php?tid=449536
https://sampforum.blast.hk/showthread.php?tid=262417
Re: Multi account & Ban evade -
Sh4d0w2 - 19.12.2015
Thanks for the help. Im gonna check out the tutorial