Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Extra Item: Holy Water Gun 1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Y060N
BANNED
Join Date: Dec 2011
Location: www.equilibriumcs.com
Old 01-10-2012 , 14:22   Re: [ZP] Extra Item: Holy Water Gun
Reply With Quote #1

I wanted to add a 5% chance to cure zombies and PM'd a few people but nobody answered lol.
Y060N is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 01-10-2012 , 14:45   Re: [ZP] Extra Item: Holy Water Gun
Reply With Quote #2

Quote:
Originally Posted by Y060N View Post
I wanted to add a 5% chance to cure zombies and PM'd a few people but nobody answered lol.
Look up antidote gun plugin it should have the code that you want...
__________________
H.RED.ZONE is offline
bartek93tbg
Member
Join Date: Apr 2011
Location: Poland
Old 01-10-2012 , 16:30   Re: [ZP] Extra Item: Holy Water Gun
Reply With Quote #3

Quote:
Originally Posted by Y060N View Post
I wanted to add a 5% chance to cure zombies and PM'd a few people but nobody answered lol.
Try

Code:
public fw_TakeDamage(victim, inflictor, attacker, Float:damage)
{
    if(is_valid_player(attacker) && get_user_weapon(attacker) == CSW_FAMAS && g_HasHw[attacker])
    {
        if(random_num(1,100) <= 5)
        {
            if(!zp_get_user_nemesis(victim))
            {
                zp_disinfect_user(victim)
                return HAM_SUPERCEDE
            }
        }

        SetHamParamFloat(4, damage * get_pcvar_float(cvar_dmgmultiplier))
    }

    return HAM_IGNORED
}
bartek93tbg is offline
Y060N
BANNED
Join Date: Dec 2011
Location: www.equilibriumcs.com
Old 01-10-2012 , 16:58   Re: [ZP] Extra Item: Holy Water Gun
Reply With Quote #4

You're the bomb, thank you. I will be testing this and will update code if it works with credits of course
Y060N is offline
Balgaa
Senior Member
Join Date: Mar 2010
Old 01-19-2012 , 11:58   Re: [ZP] Extra Item: Holy Water Gun 1.1
Reply With Quote #5

is it for AMXMODX or ?
Balgaa is offline
Balgaa
Senior Member
Join Date: Mar 2010
Old 01-19-2012 , 12:47   Re: [ZP] Extra Item: Holy Water Gun 1.1
Reply With Quote #6

how can i fix it?

[AMXX] Plugin "zp_holywatergun.amxx" failed to load: Plugin uses an unknown function (name "zv_register_extra_item") - check your modules.ini.
Balgaa is offline
Y060N
BANNED
Join Date: Dec 2011
Location: www.equilibriumcs.com
Old 01-19-2012 , 13:38   Re: [ZP] Extra Item: Holy Water Gun 1.1
Reply With Quote #7

Sorry, I accidentally uploaded the version for VIP plugin. I changed the first post ;)
Y060N is offline
Balgaa
Senior Member
Join Date: Mar 2010
Old 01-19-2012 , 14:19   Re: [ZP] Extra Item: Holy Water Gun 1.1
Reply With Quote #8

thanks
Balgaa is offline
MercedeSx7
Senior Member
Join Date: Feb 2012
Location: Serbia
Old 04-12-2012 , 17:40   Re: [ZP] Extra Item: Holy Water Gun 1.1
Reply With Quote #9

I dont know why but dosent work, help ??
__________________
MercedeSx7 is offline
naSTR
Veteran Member
Join Date: Dec 2011
Location: Asia, Mongolia
Old 04-13-2012 , 03:59   Re: [ZP] Extra Item: Holy Water Gun 1.1
Reply With Quote #10

this plugin doesn't work. it takes ammo packs and didnt giving me the gun. im using zp4.3fix5a
__________________
naSTR is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode