OnPlayerShootPlayer Question
#1

I am using an OnPlayerShootPlayer include. I wanted a one shot, one kill gamemode. Here is my script:

pawn Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
    SetPlayerHealth(Target,0);
    SetPlayerScore(Shooter,GetPlayerScore(Shooter)+1);
    GivePlayerMoney(Shooter,200);
    return 1;
}
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?
Reply


Messages In This Thread
OnPlayerShootPlayer Question - by Tigerbeast11 - 14.08.2011, 18:54
Re: OnPlayerShootPlayer Question - by Darnell - 14.08.2011, 19:11
Re: OnPlayerShootPlayer Question - by Tigerbeast11 - 14.08.2011, 20:29
Re: OnPlayerShootPlayer Question - by Sergei - 14.08.2011, 22:20
Re: OnPlayerShootPlayer Question - by Tigerbeast11 - 14.08.2011, 23:41
Re: OnPlayerShootPlayer Question - by =WoR=Varth - 15.08.2011, 02:04
Re: OnPlayerShootPlayer Question - by Tigerbeast11 - 15.08.2011, 13:32
Re: OnPlayerShootPlayer Question - by Finn - 15.08.2011, 13:51

Forum Jump:


Users browsing this thread: 1 Guest(s)