Ime animacije

Započeo Plen Ki Mun
24. Dec. 2017. Zaključano
776
pregleda
12
postova
Mate
5
Underboss
24. Dec. 2017.
Pitanje: Dali postoji ovakva animacija i dali postoji ime ove animacije ?
Komentar: Slika: https://imgur.com/5K7WJfE
Lazar Milojevic
5
Kingpin
24. Dec. 2017.
Postoji ali nzm kako se zove  😄 😄
Mate
5
Underboss
24. Dec. 2017.
Lazis wrote on December 24, 2017, 6:47 pm:
Postoji ali nzm kako se zove  😄 😄


To i mene muci...
Ivan_Ino
5
Kingpin
24. Dec. 2017.
PED
CLIMB_IDLE
Mate
5
Underboss
24. Dec. 2017.
Hvala, a problem je u tome što kada tako se uhvatim negdje mene automatski ac izbaci sa servera zbog fly hack, to jest ne prepoznaje animaciju. Kako sprijeciti to ?

@Ino42O
Ivan_Ino
5
Kingpin
24. Dec. 2017.
Kako si radio AC? ili tko je radio AC pitaj njega 😄 ili daj taj dio koda da vidimo
Mate
5
Underboss
24. Dec. 2017.
@Ino42O

Nema puno toga, ako znas rijesis za 2-3 min  😄

new OnPlayerAntiCheat;

forward AntiHacks(playerid);

//TIMER

OnPlayerAntiCheat = SetTimerEx("AntiHacks", 1500, true, "i", playerid);

//KILL THE TIMER

KillTimer(OnPlayerAntiCheat);

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//FUNCTION//
public AntiHacks(playerid)
{
    new string;
    if(IsPlayerSpawned(playerid))
    {
        new Float:Positions, Float:Velocity, PlayerKeys;
        GetPlayerPos(playerid, Positions, Positions, Positions);
        GetPlayerVelocity(playerid, Velocity, Velocity, Velocity);
        GetPlayerKeys(playerid, PlayerKeys, PlayerKeys, PlayerKeys);

        if(IsPlayerUsingFlyAnim(playerid) && !IsPlayerInWater(playerid) && PlayerKeys == KEY_UP && (Positions >= 15.0) &&
        (Velocity >= -0.9  || Velocity >= -0.9 || Velocity >= 0.9  || Velocity >= 0.9))
        {
      format(string, sizeof(string), "{E10000}AC{FFFFFF}%s has been banned: Fly Hacks", GetName(playerid));
        SendClientMessageToAll(-1, string);
          return Ban(playerid);
        }
        new animname, animlib;
        GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname));
        if (!strcmp(animname, "SWIM_CRAWL", true) && !IsPlayerInAnyVehicle(playerid))
        {
            new Float:velocityX, Float:velocityY, Float:velocityZ, Float:speed;
            GetPlayerVelocity(playerid, velocityX, velocityY, velocityZ);
            speed = floatsqroot((velocityX * velocityX) + (velocityY * velocityY) + (velocityZ * velocityZ) * 100);
            if (floatround(speed, floatround_round) >= 3)
            {
            format(string, sizeof(string), "{E10000}AC{FFFFFF}%s has been banned: Fly Hacks", GetName(playerid));
            SendClientMessageToAll(-1, string);
              return Ban(playerid);
            }
        }
        if(GetPlayerAnimationIndex(playerid))
        {
            GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname));
            f(!strcmp(animlib, "PARACHUTE", true) && !strcmp(animname, "FALL_SkyDive_Accel", true) && !strcmp(animname, "CLIMB_JUMP2FALL", true) && !strcmp(animname, "CLIMB_PULL", true) && !strcmp(animname, "CLIMB_JUMP_B", true) && !strcmp(animname, "FALL_LAND", true) && !strcmp(animname, "CLIMB_STAND", true) && !strcmp(animname, "CLIMB_IDLE", true))
            {
            {
                if(GetPlayerWeapon(playerid) != 46)
                {
                format(string, sizeof(string), "{E10000}AC{FFFFFF}%s has been banned: Fly Hacks", GetName(playerid));
                SendClientMessageToAll(-1, string);
                    return Ban(playerid);
                }
            }
        }
    }
    return 1;
}
//--------------------------------------------------//
stock IsPlayerUsingFlyAnim(playerid)
{
    switch(GetPlayerAnimationIndex(playerid))
    {
        case 1538, 1542, 1544, 1250, 1062, 1539, 958, 962: return true;
    }
    return false;
}
stock Float:Distance(Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2) return floatsqroot((((x1-x2)*(x1-x2))+((y1-y2)*(y1-y2))+((z1-z2)*(z1-z2))));
stock Float:Distance2D(Float:x1, Float:y1, Float:x2, Float:y2) return floatsqroot( ((x1-x2)*(x1-x2)) + ((y1-y2)*(y1-y2)) );

new Float:water_places =
{
    {30.0,                        2313.0,                -1417.0,        23.0},
    {15.0,                        1280.0,                -773.0,                1083.0},
    {25.0,                        2583.0,                2385.0,                15.0},
    {20.0,                        225.0,                -1187.0,        74.0},
    {50.0,                        1973.0,                -1198.0,        17.0},
    {180.0,                        1937.0,          1589.0,                9.0},
    {55.0,                        2142.0,                1285.0,        8.0},
    {45.0,                        2150.0,                1132.0,                8.0},
    {55.0,                        2089.0,                1915.0,                10.0},
    {32.0,                        2531.0,                1567.0,                9.0},
    {21.0,                        2582.0,                2385.0,                17.0},
    {33.0,                        1768.0,                2853.0,                10.0},
    {47.0,                        -2721.0,        -466.0,                3.0},
    {210.0,                        -671.0,                -1898.0,        6.0},
    {45.0,                        1240.0,                -2381.0,        9.0},
    {50.0,                        1969.0,                -1200.0,        18.0},
    {10.0,                        513.0,                -1105.0,        79.0},
    {20.0,                        193.0,                -1230.0,        77.0},
    {30.0,                        1094.0,                -672.0,                113.0},
    {20.0,                        1278.0,                -805.0,                87.0}
};
stock IsPlayerInWater(playerid)
{
    new Float:flyPosX, Float:flyPosY, Float:flyPosZ;
    GetPlayerPos(playerid, flyPosX, flyPosY, flyPosZ);

    if(flyPosZ < 44.0)
    {
        if(Distance(flyPosX, flyPosY, flyPosZ, -965.0, 2438.0, 42.0) <= 700.0) return true;
    }

    for(new i; i < sizeof(water_places); i++)
    {
        if(Distance2D(flyPosX, flyPosY, water_places, water_places) <= water_places)
        {
            if(flyPosZ < water_places) return true;
        }
        if(flyPosZ < 1.9)
        {
            if(Distance(flyPosX, flyPosY, flyPosZ, 618.4129, 863.3164, 1.0839) < 200.0) return false;
            else return true;
        }
    }
    return false;
}
Ivan_Ino
5
Kingpin
24. Dec. 2017.
probaj

case 1538, 1542, 1544, 1250, 1062, 1539, 958, 962: return true;


u

case 1538, 1542, 1544, 1250, 1539, 958, 962: return true;
Mate
5
Underboss
24. Dec. 2017.
Sada radi ( za sad)  😄

Možeš reći u čemu je bio problem ?
Ivan_Ino
5
Kingpin
24. Dec. 2017.
u animaciji 1062 koja je 'jump' bila je detektirana kao fly animation
Mate
5
Underboss
24. Dec. 2017.
Hvala ti 😄
ophion
5
OG Legend
27. Dec. 2017.


Prošlo 48h bez ikakvog odgovora na temu.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha