[Ajuda] Fake Kill na log
#3

Quote:
Originally Posted by Nickvj7
Посмотреть сообщение
pawn Код:
#include a_samp

public OnPlayerDeath(playerid, killerid, reason) { // Anti Fake Kill Bбsico
    if(killerid != INVALID_PLAYER_ID) {
        if(GetPVarInt(playerid, "Morreu") > gettime()) return Kick(playerid);
        SetPVarInt(playerid, "Morreu", gettime() + 1);  
    }
    return 1;
}
public OnPlayerText(playerid, text[]) { // Flood do Chat
    if(GetPVarInt(playerid, "TempoChat") > GetTickCount()) {
        if(GetPVarInt(playerid, "FloodChat") > 3) return Kick(playerid);
        SetPVarInt(playerid, "FloodChat", GetPVarInt(playerid, "FloodChat") + 1);
    }
    else
        DeletePVar(playerid, "FloodChat");
    SetPVarInt(playerid, "TempoChat", GetTickCount() + 500);
    return 1;
}
Experimente, fiz sem testar e fora do Pawn.
Cara jб tenho isto

pawn Код:
if(GetTickCount() > FloodTimer[playerid])
    {
        FloodAlert[playerid] = 0;
    }

    FloodTimer[playerid] = GetTickCount() +TimerFlood;
    FloodAlert[playerid]++;

    if(FloodAlert[playerid] > 1 && FloodAlert[playerid] < AlertFlood-1)
    {
        format(string, sizeof(string), "|_ ANTI-KILL-FLOOD _| Vocк tem %d/%d avisos.", FloodAlert[playerid], AlertFlood);
        SendClientMessage(playerid, Amarelo, string);
    }
    else if(FloodAlert[playerid] == AlertFlood-1)
    {
        format(string, sizeof(string), "|_ ANTI-KILL-FLOOD _| Vocк tem %d/%d avisos. Mais um e vocк serб kickado.", FloodAlert[playerid], AlertFlood);
        SendClientMessage(playerid, Amarelo, string);
    }
    else if(FloodAlert[playerid] == AlertFlood)
    {
        format(string, sizeof(string), "O(A) jogador(a) %s foi kickado(a) por Need_Ziinho-Bot. Motivo: FloodKill", GetPlayerNameEx(playerid));
        SendClientMessageToAll(Amarelo, string);
        KickLog(string);
        Kicka(playerid);
        return 1;
    }

switch(reason)
    {
        case 0..46: if(GetPlayerWeapon(killerid) != reason) return Kicka(playerid);
    }
    SetPVarInt(playerid, "Morte", gettime() + 3);
if(killerid == INVALID_PLAYER_ID) return 1;
    if(GetPVarInt(playerid, "Morte") > gettime()) return BanEx(playerid, "Fake Kill");
    if(playerid == killerid) return BanEx(playerid, "Fake Kill");

    if(!IsPlayerStreamedIn(killerid, playerid)) return Kicka(playerid);
    if(GetPlayerTeam(playerid) != NO_TEAM)
    if(GetPlayerTeam(playerid) == GetPlayerTeam(killerid)) return BanEx(playerid, "Fake Kill");
Reply


Messages In This Thread
Fake Kill na log - by Dieguinho - 28.01.2014, 23:21
Re: Fake Kill na log - by Locky_ - 28.01.2014, 23:28
Re: Fake Kill na log - by Dieguinho - 28.01.2014, 23:38
Re: Fake Kill na log - by Locky_ - 28.01.2014, 23:43
Re: Fake Kill na log - by Dieguinho - 29.01.2014, 00:14
Re: Fake Kill na log - by Dieguinho - 29.01.2014, 13:11

Forum Jump:


Users browsing this thread: 1 Guest(s)