Anti Knifebugging without OnPlayerUpdate
#2

NOt tested, try this.
pawn Код:
//put this top of your script
new antiknifebug;
//put this under ongamemodeinit.
antiknifebug = SetTimer("knifebug", 700, 1);// 700milisecond 1 means true.
//put this anywhere
forward knifebug(playerid);
public knifebug(playerid)
{
if(GetPlayerAnimationIndex( playerid ) )
    {
        new
            animlib[ 32 ],
            animname[ 32 ]
        ;
        GetAnimationName( GetPlayerAnimationIndex( playerid ), animlib, 32, animname, 32 );
        if( !strcmp( animlib, "KNIFE", true ) && !strcmp( animname, "KILL_PARTIAL", true ) )
        {
            Loading(playerid);
            ClearAnimations(playerid);
          }
          }
return 1;
}
Reply


Messages In This Thread
Using this without OnPlayerUpdate - by Blackazur - 13.07.2013, 00:42
Re: Anti Knifebugging without OnPlayerUpdate - by ToiletDuck - 13.07.2013, 00:54
AW: Anti Knifebugging without OnPlayerUpdate - by Blackazur - 13.07.2013, 00:55
Re: Anti Knifebugging without OnPlayerUpdate - by ToiletDuck - 13.07.2013, 00:58
AW: Anti Knifebugging without OnPlayerUpdate - by BigETI - 13.07.2013, 01:00
AW: Anti Knifebugging without OnPlayerUpdate - by Blackazur - 13.07.2013, 01:02
AW: Anti Knifebugging without OnPlayerUpdate - by BigETI - 13.07.2013, 01:07
AW: Anti Knifebugging without OnPlayerUpdate - by Blackazur - 13.07.2013, 01:11

Forum Jump:


Users browsing this thread: 1 Guest(s)