Raised This Month: $32 Target: $400
 8% 

Help zp extra item round limits


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghost95v
Senior Member
Join Date: Apr 2014
Location: somewhere in universe
Old 05-26-2014 , 18:00   Help zp extra item round limits
Reply With Quote #1

ANY BODY CAN HELP ME WITH THIS EXTRA ITEM ,THIS EXTRA ITEM IS BUYABLE ,AFTER 1 ROUND IS NOT BUYABLE AND NEXT ROUND IS BUYABLE AGAIN ..HOW CAN I ADD 3 MORE ROUNDS TO LIMIT THIS ITEM :/ .THNX ALL CODE IS HERE
PHP Code:
#include <amxmodx>   
#include <zombieplague>   
#include <fakemeta_util>   

new const g_item_name[] = { "Nemesis" }   
const 
g_item_cost 50   
new count[33]   

// Item IDs   
new g_nemesis   

public plugin_init()   
{   
    
register_plugin("[ZP] New Buy Nemesis""2.0""GPOWER")   
    
register_logevent("round_start"2"1=Round_Start")   
    
g_nemesis zp_register_extra_item(g_item_nameg_item_costZP_TEAM_HUMAN)       
    
count[0] = 0;   

}   
public 
zp_extra_item_selected(playeritemid)   
{   
    if (
itemid == g_nemesis)   
    {   
        if(
zp_has_round_started())  
        {  
            
client_print(playerprint_chat"[ZP] You Can't Buy Nemesis Now !")   
            return 
ZP_PLUGIN_HANDLED  
        
}  
        else  
        {  
            if(
count[0] == 0)   
            {       
                
zp_make_user_nemesis(player)   
                
count[0] = 1;   
            }   
            else   
            {   
                
client_print(playerprint_chat"[ZP] The nemesis cant be bought 2 rounds in a row, try next round !")    
                return 
ZP_PLUGIN_HANDLED   
            
}   
        }  
    }   
    return 
PLUGIN_CONTINUE   
}   
public 
round_start()   
{   
        if(
count[0] == 1)   
        {   
            
count[0] = 2;   
        }   
        else if(
count[0] == 2)   
        {   
            
count[0] = 0;   
        } 
ghost95v is offline
Send a message via Skype™ to ghost95v
Torge
Veteran Member
Join Date: Oct 2011
Old 05-27-2014 , 08:01   Re: Help zp extra item round limits
Reply With Quote #2

Oh, another topic with the same problem? Please next time turn ur caps lock off. Damn annoying.
Torge 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:11.


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