public OnPlayerShootPlayer(Shooter, Target, Float:HealthLost, Float:ArmourLost)
{
new Float:Health;
GetPlayerHealth(Target, Health);
switch(GetPlayerTeam(Shooter))
{
case TEAM_RED:
{
if(GetPlayerTeam(Target) == TEAM_BLUE)
{
switch(GetPlayerWeapon(Shooter))
{
case 0..34: SetPlayerHealth(Target, Health+HealthLost-100.0);
}
}
}
case TEAM_BLUE:
{
if(GetPlayerTeam(Target) == TEAM_RED)
{
switch(GetPlayerWeapon(Shooter))
{
case 0..34: SetPlayerHealth(Target, Health+HealthLost-100.0);
}
}
}
}
return 1;
}
Versuche das bitte^^
MfG