A Few Things I Want To Know.
#1

Is it possible to track who punches who and who rams who? Is there a way to do it?

Also, how do i make it so when a player punches, it set him back to normal making the punch not count?
Reply
#2

OnPlayerShootPlayer: https://sampforum.blast.hk/showthread.php?tid=195439
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;
}
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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)