13.07.2013, 00:54
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;
}