[Pedido] Anti fake kill
#1

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

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

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;
}
Reply
#4

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 ******?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)