SA-MP Forums Archive
[Pedido] Anti fake kill - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Anti fake kill (/showthread.php?tid=336831)



[Pedido] Anti fake kill - Hitmαn - 23.04.2012

E aн.

Bem, eu tenho um anti fake kill(nгo foi feito por mim), o problema dele й que ele estб a funcionar normal, mas se alguйm matar de Granada(Explosгo), Drive-By e algumas vezes cair de penhascos ele й kickado como suspeito de fake kill.

Cуdigo
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new 
string[128];
    if(
killerid != INVALID_PLAYER_ID)
    {
        if(
GetPlayerWeapon(killerid) != reason)
        {
            new 
pNome[MAX_PLAYER_NAME];
            
GetPlayerName(playerid, pNome, MAX_PLAYER_NAME);
            
format(string, sizeof(string), " %s foi kickado por suspeita de fake kill", pNome);
            
SendClientMessageToAll( -1, string);
            
SendClientMessage(playerid, -1, "Vocк foi kickado por suspeita de FAKE KILLL.");
            
Kick(killerid);
            return 
1;
        }
       }
    return 
1;
} 
Se alguйm puder me ajudar, й urgente, por favor, atй imploro.


Re: [Pedido] Anti fake kill - dPlaYer_ - 23.04.2012

forum.sa-mp.com/showthread.php?t=336600


Re: [Pedido] Anti fake kill - WLSF - 23.04.2012

pawn Код:
if((reason == 16) || (reason > 46))
    return false;

Exemplo:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new string[70];
    if((reason != 16) || (reason < 46))
    {
        if(killerid != INVALID_PLAYER_ID)
        {
            new pNome[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pNome, MAX_PLAYER_NAME);
            format(string, sizeof(string), " %s foi kickado por suspeita de fake kill", pNome);
            SendClientMessageToAll( -1, string);
            SendClientMessage(playerid, -1, "Vocк foi kickado por suspeita de FAKE KILLL.");
            Kick(killerid);
            return 1;
        }
    }
    return 1;
}



Re: [Pedido] Anti fake kill - .FuneraL. - 23.04.2012

Quote:
Originally Posted by Willian_Luigi
Посмотреть сообщение
pawn Код:
if((reason == 16) || (reason > 46))
    return false;

Exemplo:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new string[70];
    if((reason != 16) || (reason < 46))
    {
        if(killerid != INVALID_PLAYER_ID)
        {
            new pNome[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pNome, MAX_PLAYER_NAME);
            format(string, sizeof(string), " %s foi kickado por suspeita de fake kill", pNome);
            SendClientMessageToAll( -1, string);
            SendClientMessage(playerid, -1, "Vocк foi kickado por suspeita de FAKE KILLL.");
            Kick(killerid);
            return 1;
        }
    }
    return 1;
}
Hб como impedir utilizando alguma funзгo , aqueles "Flooders" que fazem Fake Kills pra Prejudicar o servidor? , com Cleo 4 ou ******?