[Help] Hacker Fake 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: [Help] Hacker Fake Kill ! (
/showthread.php?tid=447501)
[Help] Hacker Fake Kill ! -
Pajser - 30.06.2013
GameMode: I'm using Raven's RolePlay GM
Description: At the time some hacker enters in my server and using Fake Kill. That fake kills spam all window,messages just coming and spaming and it gives lag,with that lag you can't ban that person and how can I fix it or protect my server ?
Part of the script: If you need just say
Help me please
Re: [Help] Hacker Fake Kill ! -
Nines - 30.06.2013
Quote:
public OnPlayerDeath( playerid, killerid, reason )
{
if( IsPlayerConnected( killerid ) )
{
if( IsPlayerConnected( GetPVarInt( playerid, "LastKilled" ) ) && GetPVarInt( playerid, "LastKilled" ) == killerid )
{
if( ( GetPVarInt( playerid, "LastKilledTickcount" ) - GetTickCount( ) ) < 500 )
{
SetPVarInt( playerid, "LastKilledTick", GetPVarInt( playerid, "LastKilledTick" ) + 1 );
if( GetPVarInt( playerid, "LastKilledTick" ) > 1 ) Kick( playerid );
}
SetPVarInt( playerid, "LastKilledTickcount", GetTickCount( ) );
}
SetPVarInt( playerid, "LastKilled", killerid );
}
return 1;
}
|
There is a flaw with minigun, so make it admin immune or something.