Post: Need help, How to inflict damage to only snipers?
01-23-2020, 07:39 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I'm trying to make snipers only to kill people, example if the guy has dsr and shoots someone he dies, but if he uses a msmc he never dies.
02-05-2020, 12:37 AM #2
Patrick
League Champion
Originally posted by Ayresia View Post
I'm trying to make snipers only to kill people, example if the guy has dsr and shoots someone he dies, but if he uses a msmc he never dies.

    level.callbackPlayerDamage = :Gaspnplayerdamage;
onplayerdamage( einflictor, eattacker, idamage, idflags, smeansofdeath, sWeapon, vpoint, vdir, shitloc, psoffsettime )
{
if( getWeaponClass( sWeapon ) == "weapon_sniper" )
return 100;
}
Last edited by Patrick ; 02-07-2020 at 12:33 PM.
02-12-2020, 01:56 AM #3
Nifer
Rookie
Can you also add so that If you are in the air, and at last kill in ffa, that it can only kill players if you are using a sniper?
I'm trying to make a trickshotting server.

I'm wanting it so that We can only use snipers, but at last kill we can only kill if we are using a sniper while in mid air

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo