Page 1 of 1

no hs iš tam tikrų ginklų

Posted: 2012 Mar 31 20:29
by aurimasko
kaip padaryti, kad iš tam tikrų ginklų nedarytų damage į galvą?

Re: no hs iš tam tikrų ginklų

Posted: 2012 Mar 31 20:49
by newb

Code: Select all

#include <amxmodx>#include <fakemeta>#include <hamsandwich> new gMaxPlayers public plugin_init() {        RegisterHam(Ham_TraceAttack, "player", "FwdTraceAttack")        gMaxPlayers = get_maxplayers()} public FwdTraceAttack(victim, attacker, Float:damage, Float:direction[3], trace) {    if((1 <= attacker <= gMaxPlayers) && get_tr2(trace, TR_iHitgroup) == HIT_HEAD) {                switch(get_user_weapon(attacker)) {            case CSW_AK47, CSW_DEAGLE: return HAM_SUPERCEDE        }    }        return HAM_IGNORED}
Nors kazin ar geriausias cia budas.