SA-MP Forums Archive
Health Hack - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Health Hack (/showthread.php?tid=503191)



Health Hack - Raza2013 - 28.03.2014

Case Solved


Re: Health Hack - awsomedude - 28.03.2014

Try doing
Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
   if ( Shooter != INVALID_PLAYER_ID )
    {
        if ( GetPlayerTeam( Target ) == GetPlayerTeam( Shooter ) ) // check if the victim is from the same team as the shooter.
        {

            SendClientMessage( Shooter, C_ORANGE, "[ANTI-TEAM KILL]: {E10000}Watch your fires!" );
            return 0;
        }
    }
    return 1;
}