[FilterScript] Aka (Fake)
#1

Sistema simples e ъtil, nunca encontrei um de bom porte aqui no fуrum (Em MySQL) entгo resolvi criar um
Esse sistema й bom para pegar aqueles lerdгo que usam nick fake
OBS: na verdade isso й um cуdigo ъtil bosta ou sei lб kkkk classifiquem como quiserem <3


PHP код:
#define DIALOG_AKA 5555
public OnPlayerConnect(playerid) {
    new 
aka[124], akaquery[128], StringSalvar[124], StringJuntar[124];
    
format(akaquerysizeof(akaquery),"SELECT * FROM `aka` WHERE Ip = '%s'"GetIP(playerid));
    
mysql_query(mysqlakaquery);
    
mysql_store_result();
    if(
mysql_num_rows() > 0) {
        
mysql_fetch_field_row(StringSalvar"Nicks");
        if(
strfind(StringSalvarGetName(playerid), true) != -1) {
        } else {
            
format(StringJuntarsizeof(StringJuntar), "%s,"GetName(playerid));
            
strcat(StringJuntarStringSalvar);
            
format(akasizeof(aka), "UPDATE `aka` SET Nicks = '%s' WHERE Ip = '%s'"StringJuntarGetIP(playerid));
            
mysql_query(mysqlaka);
        }
    } else {
        
format(akasizeof(aka), "INSERT INTO `aka` (Ip,Nicks) VALUES ('%s','%s')"GetIP(playerid), GetName(playerid));
        
mysql_query(mysqlaka);
    }
    return 
true;
}
CMD:aka(playerid,params[]) {
    new 
playerIDcQuery[144];
    if(
isnull(params)) return
        
SendClientMessage(playerid, -1"/aka <jogador>");
     if(!
IsPlayerConnected(playerID)) return
         
SendClientMessage(playerid, -1"Jogador nгo encontrado");
    
format(cQuerysizeof(cQuery), "SELECT * FROM `aka` WHERE Ip = '%s'"GetIP(playerID));
    
mysql_query(mysqlcQuery);
    
mysql_store_result();
       if(
mysql_num_rows() > 0) {
        new 
Aka[256], queme[24+7];
        
format(quemesizeof(queme), "Quem й %s:"GetName(playerID));
        
mysql_fetch_field_row(Aka"Nicks");
        
ShowPlayerDialog(playeridDIALOG_AKADIALOG_STYLE_MSGBOXquemeAka"Fechar""");
    }
    return 
true;
}
CMD:limparaka(playeridparams[]) {
    new 
akaIp[16], cQuery[144];
    if(
sscanf(params,"s[16]",akaIp)) return SendClientMessage(playerid, -1"Use: /limparaka [ip]");
    
format(cQuerysizeof(cQuery), "SELECT * FROM `aka` WHERE Ip = '%s'"akaIp);
    
mysql_query(MySQLcQuery);
    
mysql_store_result();
    if(
mysql_num_rows() > 0) {
        
format(cQuerysizeof(cQuery), "UPDATE `aka` SET Nicks = '' WHERE Ip = '%s'"akaIp);
        
mysql_query(MySQLcQuery);
        
format(cQuerysizeof(cQuery), "Todos nicks usados pelo IP %s foram deletados."akaIp);
        
SendClientMessage(playerid, -1cQuery);
    }
    else {
        
SendClientMessage(playerid, -1"Nenhum aka encontrado nesse IP.");
    }
    return 
1;
}
GetName(playerid)
{
    new 
plrNome[24];
    
GetPlayerName(playeridplrNomesizeof(plrNome));
    return 
plrNome;
}
GetIP(playerid)
{
    new 
plrIP[16];
    
GetPlayerIp(playeridplrIPsizeof(plrIP));
    return 
plrIP;

Reply


Messages In This Thread
Aka (Fake) - by s4kuL - 23.05.2016, 18:47
Re: Aka (Fake) - by Wellington1999 - 23.05.2016, 19:42
Re: Aka (Fake) - by zSuYaNw - 25.05.2016, 17:50
Re: Aka (Fake) - by PT - 25.05.2016, 19:04
Re: Aka (Fake) - by LockedLucas - 25.05.2016, 19:12
Re: Aka (Fake) - by Bruno13 - 25.05.2016, 20:31
Re: Aka (Fake) - by LockedLucas - 25.05.2016, 23:38
Re: Aka (Fake) - by Jimmmy - 26.05.2016, 03:56
Re: Aka (Fake) - by PT - 26.05.2016, 11:09
Re: Aka (Fake) - by LockedLucas - 26.05.2016, 11:22

Forum Jump:


Users browsing this thread: 1 Guest(s)