20.10.2012, 08:12
Guyz i made a AntiTeamKill with opsp.inc
Is This Code Is Right Or Wrong ??
Pawn
Is This Code Is Right Or Wrong ??
Pawn
Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost) { new Float:health; GetPlayerHealth(Target, health); new Float:armour; GetPlayerArmour(Target, armour); if(PlayerInfo[Shooter][Team] == PlayerInfo[Target][Team]) { SetPlayerHealth(Target, health +HealthLost); SetPlayerArmour(Target, armour +ArmourLost); } return 1; }