Multi account & Ban evade
#1

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] >= || IsPlayerAdmin(playerid))
    {
    if(
isnull(params)) return SendClientMessage(playeridred"USAGE : {FFFFFF}/aka [ID]");
    new 
player1playername[MAX_PLAYER_NAME], str[128], tmp3[50];
    
player1 strval(params);
    if(
IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
    {
                
GetPlayerIp(player1,tmp3,50);
            
GetPlayerName(player1playernamesizeof(playername));
            
format(str,sizeof(str),"%s [%d] [%s] %s"playernameplayer1tmp3dini_Get("ladmin/config/aka.txt",tmp3));
            return 
SendClientMessage(playerid,COLOR_PURPLE,str);
        }
        else return 
SendClientMessage(playeridred"Player is not connected or is yourself");
    }
    else return 
SendClientMessage(playerid,red,"Invalid Command ! Use {FFFFFF}/cmds");

Reply
#2

BUMP
Reply
#3

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).
Reply
#4

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

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
Reply
#6

Thanks for the help. Im gonna check out the tutorial
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)