11.03.2011, 19:09
OnPlayerShootPlayer: https://sampforum.blast.hk/showthread.php?tid=195439
I guess it will work with fists. Just add this in your script:
I guess that that'll work. You can also detect when a player presses 'LMB' and deny that for other players (stop syncing). Or just freeze/unfreeze him.
I guess it will work with fists. Just add this in your script:
pawn Код:
public OnPlayerShootPlayer( shooter, target, Float:damage )
{
new Float:tHealth;
if( GetPlayerWeapon( shooter ) == 0 || GetPlayerWeapon( shooter ) == 1 ) {
GetPlayerHealth( target, tHealth );
SetPlayerHealth( target, tHealth + damage ); //Can be bugged with armour
}
return 1;
}