03.03.2013, 07:31
Use the Callback:
And here is a simple example:
Код:
public OnPlayerShootPlayer(shooter,target,Float:damage)
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;
}