Raised This Month: $ Target: $400
 0% 

Biohazard anti-dote


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
RateX
Veteran Member
Join Date: Jun 2012
Location: 0o. SEA .o0
Old 09-30-2014 , 11:08   Re: Biohazard anti-dote
Reply With Quote #2

Simple, add a new var like "g_itemid_antidote", then add this in plugin_init:
PHP Code:
g_itemid_antidote zp_register_extra_item("Antidote"40ZP_TEAM_HUMAN
After that, add:
PHP Code:
public zp_extra_item_selected(iditemid)
{
    if(
itemid != g_itemid_antidote || zp_get_zombie_count() <= 3)
        return

    
infect_antidote(id)

And for the cure_user part, take a look at zp source code.
RateX is offline
 



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 17:31.


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