Help ! Anti cheat .
#6

pawn Код:
foreach(Player, i) //Cycling through each player thats connected, you'll need to include the foreach include if you haven't already
{      
    if(GetPlayerAnimationIndex(i))//Getting the players current animation
    {  
        new animlib[32], animname[32]; //defining our two local vars that'll handle the animation name and library
        GetAnimationName(GetPlayerAnimationIndex(i), animlib, sizeof(animlib), animname, sizeof(animname));
        if(!strcmp(animlib, "PARACHUTE", true) && !strcmp(animname, "FALL_SkyDive_Accel", true))
        //To make it simple, we're just looking for the animation that handles falling with a parachute
    {
    if(GetPlayerWeapon(i) != 46) //If the player does not have the parachute as a weapon.
    {
        //Your kick/ban code here
    }
}
As an example
Reply


Messages In This Thread
Help ! Anti cheat . - by lizter008 - 04.09.2014, 09:57
Re: Help ! Anti cheat . - by lizter008 - 05.09.2014, 01:13
Re: Help ! Anti cheat . - by Kimossab - 05.09.2014, 01:51
Re: Help ! Anti cheat . - by Flake. - 05.09.2014, 04:56
Re: Help ! Anti cheat . - by lizter008 - 07.09.2014, 14:33
Re: Help ! Anti cheat . - by Flake. - 08.09.2014, 04:24
Re: Help ! Anti cheat . - by Ihateyou - 08.09.2014, 04:31
Re: Help ! Anti cheat . - by Flake. - 08.09.2014, 04:43

Forum Jump:


Users browsing this thread: 1 Guest(s)