В public OnPlayerUpdate(playerid)
- Код:
new AnimLibrary[30], AnimName[30];
new SpeedHack1;
SpeedHack1 = GetPlayerSpeed(playerid);
GetAnimationName(GetPlayerAnimationIndex(playerid), AnimLib, sizeof(AnimLib), AnimName, sizeof(AnimName));
if(SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "run_civi", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "run_1armed", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "run_armed", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "run_csaw", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "run_fat", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "run_fatold", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "run_gang1", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "run_left", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "run_old", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "run_player", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "run_right", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "run_rocket", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "Run_stop", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "woman_run", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "WOMAN_runbusy", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "WOMAN_runfatold", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "woman_runpanic", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "WOMAN_runsexy", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "WOMAN_walkbusy", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "WOMAN_walkfatold", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "WOMAN_walknorm", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "WOMAN_walkold", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "WOMAN_walkpro", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "WOMAN_walksexy", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "WOMAN_walkshop", true) == 0
|| SpeedHack1 > 30 && strcmp(AnimLib, "PED", true) == 0 && strcmp(AnimName, "Run_stopR", true) == 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Вы кикнуты по подозрению в читерстве!"); // ваше наказание..
Kick(playerid);
}
- Код:
stock GetPlayerSpeed(playerid)
{
new Float:Coord[4];
GetPlayerVelocity(playerid, Coord[0], Coord[1], Coord[2]);
Coord[3] = floatsqroot(floatpower(floatabs(Coord[0]), 2.0) + floatpower(floatabs(Coord[1]), 2.0) + floatpower(floatabs(Coord[2]), 2.0)) * 213.3;
return floatround(Coord[3]);
}