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:
http://balkan-samp.com/forum/index.php?topic=59293.msg426559#msg426559
Nepomaze ni to brt o5 mogu da daju znaci nez vise sta raditi 10 tih fakekillo-a sam promeno i nista nepomaze
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 :(
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;
}
Sad cu da testiram :D
Edit: ne radi.
sta je taj fakekill xd
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 ?