Help Head Shot with sniper
#1

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

            new Float:hp;
            GetPlayerHealth(Target, hp);
            SetPlayerHealth(Target, hp + HealthLost);
            GameTextForPlayer(Shooter, "~r~Don't Team Kill!", 3000, 3);
        }
    }
    if ( Shooter != INVALID_PLAYER_ID )
    {
        if (GetPlayerTeam(Target) != GetPlayerTeam(Shooter)) // check if the target is from the same team as the shooter.
        {
            SetPlayerHealth(Target, 0);
            GameTextForPlayer(Target, "~r~Head Shot!", 3000, 3);
        }
    }
    return 1;
    }
how to add here only for sniper
Reply


Messages In This Thread
Help Head Shot with sniper - by Mijata - 25.01.2015, 17:25
Re: Help Head Shot with sniper - by nezo2001 - 25.01.2015, 17:29
Re: Help Head Shot with sniper - by Mijata - 25.01.2015, 17:34
Re: Help Head Shot with sniper - by M4D - 25.01.2015, 17:34
Re: Help Head Shot with sniper - by Mijata - 25.01.2015, 17:36
Re: Help Head Shot with sniper - by nezo2001 - 25.01.2015, 17:39
Re: Help Head Shot with sniper - by Mijata - 25.01.2015, 17:41
Re: Help Head Shot with sniper - by CalvinC - 25.01.2015, 17:46
Re: Help Head Shot with sniper - by Mijata - 25.01.2015, 17:47
Re: Help Head Shot with sniper - by nezo2001 - 25.01.2015, 17:50

Forum Jump:


Users browsing this thread: 3 Guest(s)