25.12.2012, 19:18
Hello, is there any Methode to script an Anti Knifebugging, so that Players with Knife cant kill a other Guy from the back, and cute of his Neck?
ClearAnimations(playerid);
There is. Check if the animation the player is applying is the one with the knife animation and if it's the same
pawn Code:
|
ApplyAnimation(playerid,"KNIFE","KILL_Knife_Ped_Damage",4.0,1,1,1,1,0);
public OnPlayerUpdate(playerid) { ApplyAnimation(playerid,"KNIFE","KILL_Knife_Ped_Damage",4.0,1,1,1,1,0); ClearAnimations(playerid); return 1; }