Raised This Month: $ Target: $400
 0% 

Biohazard anti-dote


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 09-30-2014 , 11:40   Re: Biohazard anti-dote
Reply With Quote #3

Quote:
Originally Posted by RateX View Post
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.
The problem is I can not use zp_get_zombie_count() <= 3) or any other zombie count in my biohazard mod. Maybe we can check TS team?

Last edited by Krtola; 09-30-2014 at 11:41.
Krtola is offline
Send a message via Skype™ to Krtola
 



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