[FilterScript] Anti-speed hack to drift and stunt server
#1

Hi again guys, here an anti-speed hack by me to you, is very simple and have a Russian style That supports the speed
And it does not increase is very simple that no need images...

Here the code:

Код:
// Anti Speed-hack by 007Skyfall to Forum samp forum.sa-mp.com do not remove credits.

#include <a_samp>
#if defined FILTERSCRIPT
public OnGameModeInit()
{

	return 1;
}

forward AntiSpeedHack();
public AntiSpeedHack()
{
for(new i=0; i<MAX_PLAYERS; i++)
if(IsPlayerConnected(i))
{
if(ObtenerVelocidad(i)> 230)
{
switch(GetVehicleModel(GetPlayerVehicleID(i)))
{
case 0,511,460,592,577,512,513,520,553,593,476,519: printf("[ID: %d] has used a speed-hack, and will be banned %skm/h",i,GetVehicleModel(GetPlayerVehicleID(i)),ObtenerVelocidad(i));
default:
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(i, X, Y, Z);
SendClientMessage(i, 0xFF0000FF,"[Anti-Hack]No speedhack Or you will banned!");
RemovePlayerFromVehicle(i);
SetPlayerPos(i, X, Y, Z+5);
}
}
}
}
}
stock ObtenerVelocidad(playerid)
{
new Float:PosX, Float:PosY, Float:PosZ, Float:PlayerSpeedDistance;
GetVehicleVelocity(GetPlayerVehicleID(playerid), PosX, PosY, PosZ);
PlayerSpeedDistance = floatmul(floatsqroot(floatadd(floatadd(floatpower( PosX, 2), floatpower(PosY, 2)), floatpower(PosZ, 2))), 170.0);
new spe = floatround(PlayerSpeedDistance * 1);
return spe;
}
#endif
Or Download:

Anti-Speedhack.pwn


Thanks and remember i am spanish, so sorry for my bad english
Reply


Messages In This Thread
Anti-speed hack to drift and stunt server - by 007Skyfall - 02.02.2013, 20:44
Re: Anti-speed hack to drift and stunt server - by DrAke$ - 02.02.2013, 23:58
Respuesta: Anti-speed hack to drift and stunt server - by RiChArD_A - 03.02.2013, 00:39
Re: Anti-speed hack to drift and stunt server - by ThePhenix - 03.02.2013, 01:09
Re: Anti-speed hack to drift and stunt server - by Alvon - 03.02.2013, 12:00
Re: Anti-speed hack to drift and stunt server - by Killa[DGZ] - 03.02.2013, 13:40
Re: Anti-speed hack to drift and stunt server - by 007Skyfall - 03.02.2013, 14:36

Forum Jump:


Users browsing this thread: 1 Guest(s)