Raised This Month: $ Target: $400
 0% 

Biohazard anti-dote


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 09-30-2014 , 09:33   Biohazard anti-dote
Reply With Quote #1

How to make this a extra item (feel free to use ZP natives,I will edit for biohazard) and how to set that can be purchased only if have more than 3 zombies alive??

PHP Code:
#include <amxmodx> 
#include <cstrike> 
#include <biohazard> 

#if !defined _biohazard_included 
        #assert Biohazard functions file required! 
#endif 

#define PLUGIN "biohazard Zombie Antidote" 
#define VERSION "1.0" 
#define AUTHOR "ds811888" 

public plugin_init() 

    
register_plugin(PLUGINVERSIONAUTHOR
    if(!
is_biomod_active()) pause("ad"
    
register_clcmd("say /antidote""infect_antidote"


public 
infect_antidote(id

    if(!
is_user_alive(id) && !is_user_zombie(id)) 
        return; 
     
    new 
money cs_get_user_money(id
    new 
cost 5000 

    
if(money <= cost
    { 
        
client_print(idprint_center"You need 5000$ to buy an antidote!"
    } 
    else 
    { 
        
cs_set_user_money(idmoney cost)   
        
client_print(idprint_center"You have used an antidote!"
        
cs_set_user_team(idCS_TEAM_CT)
        
cure_user(id
    } 


Last edited by Krtola; 09-30-2014 at 09:36.
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