14.08.2011, 18:54
I am using an OnPlayerShootPlayer include. I wanted a one shot, one kill gamemode. Here is my script:
The problem is, when I set the Target's health to 0, it wont give the Shooter a +1 kill as the health was SET to zero... In other words, it won't count as a kill for the Shooter... Is there anyway to fix this?
pawn Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
SetPlayerHealth(Target,0);
SetPlayerScore(Shooter,GetPlayerScore(Shooter)+1);
GivePlayerMoney(Shooter,200);
return 1;
}