A Few Things I Want To Know.
#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


Messages In This Thread
A Few Things I Want To Know. - by Rokzlive - 11.03.2011, 18:59
Re: A Few Things I Want To Know. - by Kwarde - 11.03.2011, 19:09

Forum Jump:


Users browsing this thread: 1 Guest(s)