Need Help About Aka System
#1

Hello I need Help I Take Code of Aka System from JL Admin System And I Put in its Working Perfectly but I got
Big Problem that is I see Every Player In THe Server AFK But the Player is Not AFK plz Help me
PHP код:
Code Under OnPlayerConnect
    
new Jfile[100],pIP[16];
    
strdel(aka,0,256);
    
GetPlayerIp(playerid,pIP,16);
    
GetPlayerIp(playerid,playerIP,16);
    
format(Jfile,sizeof(Jfile),"Config/aka.ini");
    
INI_ParseFile(Jfile,"GetAkaLog");
    if(
strlen(aka) < 3)
    {
        
format(Jfile,sizeof(Jfile),"Config/aka.ini");
        new 
INI:AKA INI_Open(Jfile);
        
INI_WriteString(AKApIPGetName(playerid));
        
INI_Close(AKA);
    }
    else if(
strfind(akaGetName(playerid), true) == -1)
    {
        
format(Jfile,sizeof(Jfile),"Config/aka.ini");
        
format(pstring,sizeof(pstring),"%s,%s"akaGetName(playerid));
        new 
INI:AKA INI_Open(Jfile);
        
INI_WriteString(AKApIPpstring);
        
INI_Close(AKA);
    }
    if(
strlen(aka) > 70)
    {
        
strmid(pstring,aka,0,70);
        
format(pstringsizeof(pstring),"Player: %s - IP: %s - AKA: %s"GetName(playerid),playerIP pstring);
        
SendMessageToAdmins(pstring);
        
strmid(pstring,aka,70,sizeof(aka));
        
format(pstringsizeof(pstring),"%s"pstring);
        
SendMessageToAdmins(pstring);
    }
    else
    {
        if(
strlen(aka) > 2format(pstringsizeof(pstring),"Player: %s - IP: %s - AKA: %s"GetName(playerid),playerIP aka);
        else 
format(pstringsizeof(pstring),"Player: %s - IP: %s - AKA: No aka found!"GetName(playerid),playerIP);
        
SendMessageToAdmins(pstring);
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)