Новый рабочий Anti Fly Hack
В паблик с циклическим повторением! (не желательно OnPlayerUpdate)
Код
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
new AnimLib[30], AnimName[30];
new Float:posx, Float:posy, Float:posz;
GetPlayerPos(playerid, posx, posy, posz);
GetAnimationName(GetPlayerAnimationIndex(playerid), AnimLib, sizeof(AnimLib), AnimName, sizeof(AnimName));
if(GetPlayerSpeedID(playerid) > 69 && posz >= 6)
{
if(strcmp(AnimLib, "SWIM", true) == 0 && strcmp(AnimName, "SWIM_crawl", true) == 0)
{
KickWithMessage(playerid, COLOR_RED, "[Fly Hack]");
}
}
}