24.04.2013, 18:08
pawn Код:
public OnPlayerConnect(playerid){
SetTimerEx("CheckSpeed", 100, true, "i", playerid);
}
forward CheckHacks(playerid);
public CheckHacks(playerid){
if(GetVehicleSpeed(GetPlayerVehicleID(playerid)) > 1000){
Kick(playerid);
}
}
stock GetVehicleSpeed(vehicleid)
{
new Float:xPos[3];
GetVehicleVelocity(vehicleid, xPos[0], xPos[1], xPos[2]);
return floatround(floatsqroot(xPos[0] * xPos[0] + xPos[1] * xPos[1] + xPos[2] * xPos[2]) * 170.00);
}