26.10.2012, 21:17
Hey, I tried to do this:
i want the code will work only when the player shoot with weapon id - 23 (Deagle)
it will work? if not, how to fix that? Thanks for helpers!
PHP код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
if(Taser[Shooter] == 1)
{
if(GetPlayerWeapon(Shooter) != 23) return 0;
ApplyAnimation(Target, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
new Float:H;
GetPlayerHealth(Target,H);
SetPlayerHealth(Target,H - 5);
}
return 1;
}
it will work? if not, how to fix that? Thanks for helpers!