02.02.2013, 20:44
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:
Or Download:
Anti-Speedhack.pwn
Thanks and remember i am spanish, so sorry for my bad english
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
Anti-Speedhack.pwn
Thanks and remember i am spanish, so sorry for my bad english