Page 1 of 1

Del savizudybes

Posted: 2013 Mar 28 10:39
by Koti
Sveiki, jau senokai čia lankiaus, tačiau dabar prireikė ir nerandu niekur vieno paprasto plugino.

Tiesiog teroristas negali savęs nužudyti su HE.

Re: Del savizudybes

Posted: 2013 Mar 28 12:26
by Trickas

Re: Del savizudybes

Posted: 2013 Mar 29 11:28
by Koti
Nesuprantu aš ten.. nėra ko nors paprasčiau? Man reik kad tik Terai negalėtų savęs kilinti su HE.

Re: Del savizudybes

Posted: 2013 Mar 29 14:24
by Trickas
Va kažką radau, tiesiog tam kas metė he ji nedarys žalos ar T ar Ct. Jeigu tik T reikia pasidaryk, kad chekintų team, jeigu nėmokėsi padarysiu rytoj link vakaro, kai savo pc turėsiu.

Code: Select all

#include <amxmodx>#include <hamsandwich> const DMG_NADE = (1<<24) public plugin_init(){    register_plugin( "No Self-Nade", "1.0", "Wrecked" )        RegisterHam( Ham_TakeDamage, "player", "HamTakeDamagePre", 0 )} public HamTakeDamagePre( vic, inf, att, Float:dmg, dmgbits )    return ( ( vic == att ) && ( dmgbits & DMG_NADE ) )         ? HAM_SUPERCEDE         : HAM_IGNOREDhttps://forums.alliedmods.net/showthread.php?t=132667
Tema: https://forums.alliedmods.net/showthread.php?t=132667

Re: Del savizudybes

Posted: 2013 Apr 02 11:59
by Koti
Aciu, padejai ;) bet butu dar geriau kad tik terams nenuimtu. Nemoku pats pasidaryt.

Re: Del savizudybes

Posted: 2013 Apr 02 13:12
by newb

Code: Select all

#include <amxmodx>#include <hamsandwich> const DMG_NADE = (1<<24) public plugin_init(){    register_plugin( "No Self-Nade", "1.0", "Wrecked" )       RegisterHam( Ham_TakeDamage, "player", "HamTakeDamagePre", 0 )} public HamTakeDamagePre( vic, inf, att, Float:dmg, dmgbits )    return ( ( vic == att ) && ( dmgbits & DMG_NADE ) && get_user_team(vic) == 1)        ? HAM_SUPERCEDE        : HAM_IGNORED