10.05.2015, 06:43
Nice
Use GetVehicleVelocity for get speed to car for fix your anti-speed hack.
or use #define GetPlayerSpeed GetVehicleVelocity and use
Use GetVehicleVelocity for get speed to car for fix your anti-speed hack.
Code:
if(IsPlayerInAnyVehicle(playerid)) { new Float:Speed[3],Round_Speed; GetVehicleVelocity(GetPlayerVehicleID(p), Speed[0], Speed[1], Speed[2]); Round_Speed = floatround(floatsqroot(Speed[0] * Speed[0] + Speed[1] * Speed[1] + Speed[2] * Speed[2]) * 170.00); if(Round_Speed > 290) { TogglePlayerControllable(playerid, false); SetPlayerPos(playerid, 1941.1534,-1100.2391,-23.7885); ShowPlayerDialog(playerid, DIALOG_PRAVILA,DIALOG_STYLE_MSGBOX,"Anti-Hack", "{FFCC00}[Anticheat]"WHITE"[Anti-Cheat] You Have Been Banned for using Speed Hack!!!","Ok",""); BanEx(playerid, "Speed Hack"); } }
Code:
new Float:Speed[3],Round_Speed; GetPlayerSpeed(GetPlayerVehicleID(p), Speed[0], Speed[1], Speed[2]); Round_Speed = floatround(floatsqroot(Speed[0] * Speed[0] + Speed[1] * Speed[1] + Speed[2] * Speed[2]) * 170.00);