someone knows a good anti false kill? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: someone knows a good anti false kill? (
/showthread.php?tid=654196)
someone knows a good anti false kill? -
nbx2000 - 23.05.2018
If someone knows an anti-fake kill, please tell me please
this anti kill fake is not good
Код:
public OnPlayerSpawn(playerid)
{
SetPVarInt(playerid,"KilledFlood",0);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
SetPVarInt(playerid,"KilledFlood", GetPVarInt(playerid,"KilledFlood") + 1);
if(GetPVarInt(playerid,"KilledFlood") > 1) return BanEx(playerid, "(Fake-Kill Flood)");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
SetPVarInt(playerid,"KilledFlood",0);
return 1;
}
Re: someone knows a good anti false kill? -
SeanDenZYR - 23.05.2018
pawn Код:
OnPlayerDeath(playerid, killerid, reason)
{
if(killerid == INVALID_PLAYER_ID) // invlalid killer id
{
// code here
}
return 1;
}
Re: someone knows a good anti false kill? -
Sew_Sumi - 23.05.2018
Quote:
Originally Posted by SeanDenZYR
pawn Код:
OnPlayerDeath(playerid, killerid, reason) { if(killerid == INVALID_PLAYER_ID) // invlalid killer id { // code here } return 1; }
|
That's not how a fake kill works...
A fake-kill is someone who is reporting to the server that they've been killed by another player when that player isn't near them, armed, or even attacking (It can also have all those factors mentioned applying).
Don't post up random shit for the sake of it.
Re: someone knows a good anti false kill? -
SeanDenZYR - 23.05.2018
Quote:
Originally Posted by Sew_Sumi
That's not how a fake kill works...
A fake-kill is someone who is reporting to the server that they've been killed by another player when that player isn't near them, armed, or even attacking (It can also have all those factors mentioned applying).
Don't post up random shit for the sake of it.
|
i've seen this type of anti fake kill in many scripts (also with the comment indicating that it is an anti fake kill) so maybe it was a wrong code aswell sooo, sorry
Re: someone knows a good anti false kill? -
Logic_ - 23.05.2018
That
if statement is to avoid array out of bounds errors.