SA-MP Forums Archive
[FilterScript] Anti-speed hack to drift and stunt server - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Anti-speed hack to drift and stunt server (/showthread.php?tid=412712)



Anti-speed hack to drift and stunt server - 007Skyfall - 02.02.2013

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


Re: Anti-speed hack to drift and stunt server - DrAke$ - 02.02.2013

Occasionally there may be bugs in addition to the use of id 0


Respuesta: Anti-speed hack to drift and stunt server - RiChArD_A - 03.02.2013

Mm looks nice I'll use it!

PD: yo tambien hablo espaсol jaja naci en cuba.


Re: Anti-speed hack to drift and stunt server - ThePhenix - 03.02.2013

Awful indentation..

Use pawn tags next time.


Re: Anti-speed hack to drift and stunt server - Alvon - 03.02.2013

There is nothing appealing about filterscript have you created. Pardon me for saying so.

Note - Do not be offended. Because it is only an opinion.

#March


Re: Anti-speed hack to drift and stunt server - Killa[DGZ] - 03.02.2013

Quote:
Originally Posted by Alvon
Посмотреть сообщение
There is nothing appealing about filterscript have you created. Pardon me for saying so.

Note - Do not be offended. Because it is only an opinion.
I think he's done a good job to be honest, it can be greatly improved yes.. but c'mon it's alright for his first release, I believe some people will find it useful..

weldone 007Skyfall



I'll be looking forward to some of your more superior releases in future Alvon


Re: Anti-speed hack to drift and stunt server - 007Skyfall - 03.02.2013

Quote:
Originally Posted by Killa[DGZ]
Посмотреть сообщение
I think he's done a good job to be honest, it can be greatly improved yes.. but c'mon it's alright for his first release, I believe some people will find it useful..

weldone 007Skyfall



I'll be looking forward to some of your more superior releases in future Alvon
Oh!, thx im new on this and... i dont understand very well this language of script sorry...