[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
#2

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

Mm looks nice I'll use it!

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

Awful indentation..

Use pawn tags next time.
Reply
#5

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
Reply
#6

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
Reply
#7

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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)