28.03.2014, 20:32
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; }