How to make AKA show up on Connect Message?
#1

Hello there!

I've been trying to make the Connect Message give administrators level 3 AKA Information
when a player connects to the server but failed.
I've seen that LuxAdmin got this so I would like to try make it on Lethal Admin but it didnt work very well.............

This is the LuxAdmin Code:

pawn Код:
//==============================================================================
// Connect Messages
//==============================================================================
    if(ServerInfo[ConnectMessages] == 1)
    {
        if (strlen(dini_Get("LuxAdmin/Config/aka.txt",tmp3)) < 3)
        format(str,sizeof(str),"* Player %s (Id:%d[%s]) has joined the server", PlayerName,playerid,GetPlayerCountryName(playerid));
        else if (!strcmp(dini_Get("LuxAdmin/Config/aka.txt",tmp3),PlayerName,true))
        format(str,sizeof(str),"* Player %s (Id:%d[%s]) has joined the server", PlayerName,playerid,GetPlayerCountryName(playerid));
        else format(str,sizeof(str),"Player %s (Id:%d[%s]) has joined the server (Aka: %s)",PlayerName,playerid,GetPlayerCountryName(playerid),dini_Get("LuxAdmin/Config/aka.txt",tmp3));
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) && playerid != i)
            {
                if(AccInfo[i][Level] > 3)
                    Inter_SendClientMessage(i,grey,str);
                else
                {
                    format(string,sizeof(string),"* Player %s (Id:%d) has joined the server", PlayerName, playerid);
                    Inter_SendClientMessage(i,grey,string);
                }
            }
        }
    }
I tried to simply edit the directories to what ladmin have like this:

pawn Код:
//==============================================================================
// Connect Messages
//==============================================================================
    if(ServerInfo[ConnectMessages] == 1)
    {
        if (strlen(dini_Get("ladmin/config/aka.txt",tmp3)) < 3)
        format(string,sizeof(string),"* Player %s (Id:%d[%s]) has joined the server", PlayerName,playerid,GetPlayerCountryName(playerid));
        else if (!strcmp(dini_Get("ladmin/config/aka.txt",tmp3),PlayerName,true))
        format(string,sizeof(string),"* Player %s (Id:%d[%s]) has joined the server", PlayerName,playerid,GetPlayerCountryName(playerid));
        else format(string,sizeof(string),"Player %s (Id:%d[%s]) has joined the server (Aka: %s)",PlayerName,playerid,GetPlayerCountryName(playerid),dini_Get("ladmin/config/aka.txt",tmp3));
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) && playerid != i)
            {
                if(PlayerInfo[playerid][Level] >= 3)
                    SendClientMessage(i,grey,string);
                else
                {
                    format(string,sizeof(string),"* Player %s (Id:%d) has joined the server", PlayerName, playerid);
                    SendClientMessage(i,grey,string);
                }
            }
        }
    }
But the only message I get when someone joins the server is the normal one (The one who level 0 admins should see)
"format(string,sizeof(string),"* Player %s (Id:%d) has joined the server", PlayerName, playerid);"

This is the one level 3 admins should see if the player has any other names:
"else format(string,sizeof(string),"Player %s (Id:%d[%s]) has joined the server (Aka: %s)",PlayerName,playerid,GetPlayerCountryName(play erid),dini_Get("ladmin/config/aka.txt",tmp3));"

Please help me to find out how to fix this!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)