Sniper
#2

Use the Callback:
Код:
public OnPlayerShootPlayer(shooter,target,Float:damage)
And here is a simple example:

pawn Код:
public OnPlayerShootPlayer(shooter,target,Float:damage)
{
    new Float:HP;
    GetPlayerHealth(target, HP); // Here we will take the player current health
    if(GetPlayerWeapon(shooter) == 34) SetPlayerHealth(target, HP-100); // This will kill the target from 1 shoot
    return 1;
}
Reply


Messages In This Thread
Sniper - by Fernado Samuel - 03.03.2013, 07:17
Re: Sniper - by RenSoprano - 03.03.2013, 07:31
Re: Sniper - by B-Matt - 03.03.2013, 07:42
Re: Sniper - by Tamer - 03.03.2013, 08:22

Forum Jump:


Users browsing this thread: 1 Guest(s)