Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: ▂ ▃ ▅ Rudimental ▅ ▃ ▂ poslato Januar 12, 2013, 15:52:47 POSLE PODNE

Naslov: FakeKill
Poruka od: ▂ ▃ ▅ Rudimental ▅ ▃ ▂ poslato Januar 12, 2013, 15:52:47 POSLE PODNE
Scripta koju koristim: moja
Detaljan opis problema: Kako da sredim da nemogu da rade FakeKill bio sam svasta ubacivao oko toga ali nista nije pomoglo.
Deo scripte:
Naslov: Odg: FakeKill
Poruka od: Blaeks poslato Januar 12, 2013, 17:20:17 POSLE PODNE
http://balkan-samp.com/forum/index.php?topic=59293.msg426559#msg426559
Naslov: Odg: FakeKill
Poruka od: ▂ ▃ ▅ Rudimental ▅ ▃ ▂ poslato Januar 13, 2013, 14:03:30 POSLE PODNE
Nepomaze ni to brt o5 mogu da daju znaci nez vise sta raditi 10 tih fakekillo-a sam promeno i nista nepomaze
Naslov: Odg: FakeKill
Poruka od: Bojan98 poslato Decembar 30, 2013, 01:09:36 PRE PODNE
Takodje isti problem imam, sve sam ubacivao i testirao i dalje radim fake kill i ne kick me, a fast kill kad radim onda me kick :(
Naslov: Odg: FakeKill
Poruka od: Vuzimir poslato Decembar 30, 2013, 07:59:35 PRE PODNE
Ova metoda je jako funkcionalna, igrac pokrene fakekill ali se nista nedesava:

#include <YSI\y_hooks>

// Delay until a connection would be ignored
#define         FAKEKILL_DELAY            10000

// Number of times within the connection delay to constitute an attack
#define         FAKEKILL_LIMIT            10

// Connection info
enum FAKEKILLINFO
{
    DeathCount,
    LastDeathTime,
}

static FakekillData[MAX_PLAYERS][FAKEKILLINFO];

hook OnPlayerDeath(playerid, killerid, reason)
{
    if(!IsPlayerNPC(playerid))
    {
        if(GetTickCount() - FakekillData[playerid][LastDeathTime] < FAKEKILL_DELAY)
        {
            FakekillData[playerid][DeathCount]++;
            if(FakekillData[playerid][DeathCount] == FAKEKILL_LIMIT) ProcessHack(playerid, INVALID_PLAYER_ID, PATCH_ANTIFAKEKILL);
        }
        else FakekillData[playerid][DeathCount] = 1;
        FakekillData[playerid][LastDeathTime] = GetTickCount();
    }
    return 1;
}

hook OnPlayerDisconnect(playerid, reason)
{
    FakekillData[playerid][DeathCount] = 0;
    FakekillData[playerid][LastDeathTime] = 0;
    return 1;
}
Naslov: Odg: FakeKill
Poruka od: Bojan98 poslato Decembar 30, 2013, 14:53:33 POSLE PODNE
Sad cu da testiram :D

Edit: ne radi.
Naslov: Odg: FakeKill
Poruka od: xZone poslato Decembar 30, 2013, 15:03:41 POSLE PODNE
sta je taj fakekill xd
Naslov: Odg: FakeKill
Poruka od: Blaeks poslato Decembar 30, 2013, 21:06:36 POSLE PODNE
Citat: Bojan98 poslato Decembar 30, 2013, 01:09:36 PRE PODNE
Takodje isti problem imam, sve sam ubacivao i testirao i dalje radim fake kill i ne kick me, a fast kill kad radim onda me kick :(
je l si okej ?