08.06.2013, 09:51
Well It freezes and unfreezes but the animation does not work...
Can someone help?
pawn Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
if(Player[Shooter][HasTaser] == 1)
{
if(GetPlayerWeapon(Shooter) == 23)
{
new Float: PHealth;
GetPlayerHealth(Target, PHealth);
SetPlayerHealth(Target, PHealth+HealthLost);
TogglePlayerControllable(Target, false);
ApplyAnimation(Target, "CRACK", "crckidle4", 4.0, 1, 0, 0, 0, 0);
SetTimerEx("TaserClear",7000,false,"d",Target);
fSendClientMessage(Shooter, YELLOW, "Info: You have tased %s", RPName(Target));
}
}
return 1;
}