Multiple damage only with HE Grenade

Šiame forume rašomi vartotojų klausimai/problemos su kuriomis jie susidūrė kuriant pluginus.
Post Reply
User avatar
Vebsteris
Jau po truputį tampa savu
Posts: 195
Joined: 2011 Aug 20 14:08

Multiple damage only with HE Grenade

Post by Vebsteris »

Code: Select all

public Event_TakeDamage(victim, inflictor, attacker, Float:damage){    if(is_user_alive(attacker) && get_user_flags(attacker) && ADMIN_LEVEL_H)    {        damage *= 2.0        SetHamParamFloat(4, damage)    }}
Man reikia, kad tik su He granata veiktų šita funkcija. Be to, ar veiks šita funkcija ant kitų žaidėjų?

newb
Pluginų patvirtintojas
Posts: 1047
Joined: 2010 Sep 23 21:43
Location: Wonderland
Contact:

Re: Multiple damage only with HE Grenade

Post by newb »

Code: Select all

public Event_TakeDamage(victim, inflictor, attacker, Float:damage) {        if(get_user_flags(attacker) && ADMIN_LEVEL_H) {        static classname[8]        pev(inflictor, pev_classname, classname, charsmax(classname))                if(equal(classname, "grenade")) {           SetHamParamFloat(4, damage*2)                   return HAM_OVERRIDE       }        return HAM_HANDLED}

FrankJScott
Gana aktyvus vartotojas
Posts: 421
Joined: 2024 Apr 04 22:28
Skype: asfasf

Top Rated Product Guide

Post by FrankJScott »

Please try Google before asking about Great Product Website 3cb1e3b

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest