Raised This Month: $12 Target: $400
 3% 

[ZP50] Addon: Item Limiter (Update 1.1)


Post New Thread Reply   
 
Thread Tools Display Modes
Chihuahuax
Senior Member
Join Date: Oct 2014
Location: Malaysia
Old 11-05-2014 , 07:53   Re: [ZP50] Addon: Item Limiter (Update 1.1)
Reply With Quote #41

Zp5.0 huh..
I will never use dat version cuz the damage of nemesis isnt constant
Chihuahuax is offline
Send a message via Skype™ to Chihuahuax
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-05-2014 , 08:58   Re: [ZP50] Addon: Item Limiter (Update 1.1)
Reply With Quote #42

Yes, thats right Depresie. ;)
zmd94 is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 11-05-2014 , 09:57   Re: [ZP50] Addon: Item Limiter (Update 1.1)
Reply With Quote #43

Quote:
Originally Posted by Depresie View Post
you can change the gameplay with only few configs and extra items.. you just have to be creative...
especialy with zp 5.0 where you have infinite posibilities with gameplay because you have everything made in pieces...
let me give you an example.. you take the survivor sma, make a copy, you change the name of the mod and the natives, you change the configs, you give him couple extra items and bam, you have a completly new mod for example you make a survivor with a plasma gun and jetpack and bam you have an exterminator mod there are many posibilities, and it's not hard... you don't have to know how to script, for example i don't know how to make anything from scratch, but i take pieces form other plugins and i follow the patterns and where i have problems, i just ask here, and the comunity will be glad help you get things done
or you can just add couple of extras and you will see a huge impact on the gameplay...
See now you know how i felt when you were fighting with me ? lol ... zp50 is really good and ye ur right there is no limit for what you can do here
__________________
You will find everything u need :-
Catastrophe is offline
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 11-05-2014 , 09:58   Re: [ZP50] Addon: Item Limiter (Update 1.1)
Reply With Quote #44

Maybe im wrong,but zp50 is not best,it can be better....


EDIT: OK OK IM WRONG
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP






Last edited by New.ZM.Life; 11-05-2014 at 09:59.
New.ZM.Life is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 11-05-2014 , 16:39   Re: [ZP50] Addon: Item Limiter (Update 1.1)
Reply With Quote #45

i never said zp 5.0 was bad... it is very good, and brings many posibilities... but back in the day, most of the plugins weren't compatible, which diminished it's potential... but now days with all the support it was given.. there is no doubt it is the best addon if you realy want to create a special server... only that you have to get used to the new things it brings...but that takes just couples of days... anyway, thx guys for all the support you give on this forum...you are the real MVP.. i won't give names, you all know who you are... keep up the good work ;) all these years i've been crawling around these forums, you always brang a smile on my face with all the great stuff you did .. cheers.. and im sorry i didn't have the nerve to learn more and give more support to all these stuff... i owe you guys alot for what you taught me and what you offered me here for free CHEERS

Last edited by Depresie; 11-05-2014 at 16:42.
Depresie is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 11-06-2014 , 09:52   Re: [ZP50] Addon: Item Limiter (Update 1.1)
Reply With Quote #46

Cheers ;)
__________________
You will find everything u need :-
Catastrophe is offline
Stasi_bg
Member
Join Date: Nov 2013
Old 11-29-2014 , 05:59   Re: [ZP50] Addon: Item Limiter (Update 1.1)
Reply With Quote #47

Can anybody make a plugin ZP50 in ZP 4.3?
Stasi_bg is offline
Slavut1chh
Member
Join Date: Jul 2010
Location: N/A
Old 10-03-2015 , 06:21   Re: [ZP50] Addon: Item Limiter (Update 1.1)
Reply With Quote #48

Quote:
Originally Posted by Catastrophe View Post
zp_extra_limit_mode (0 - Limit for 1 round | 1 - Limit for 1 map)(Def - 0)(I'll separate this specific to each item in the next update hopefully)
Still waiting for this
__________________
Quote:
Originally Posted by tei1995 View Post
nobody care about fps when play zombie mod
Slavut1chh is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 10-08-2015 , 04:04   Re: [ZP50] Addon: Item Limiter (Update 1.1)
Reply With Quote #49

i don't think the author is still supporting this plugin, from what i understood, he gave up on scripting
but you can learn how to limit items by yourself, by map/round, it's very easy

here you have a small tutorial about it, sorry for not making it more clear, if you have any questions just ask

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <zp50_items>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Emanuel"


/* Global variable to store how many times the item was bought by all players togheter
   We use this if we want to limit an item globaly
   Example: If the item limit si set to 3, the item can be bought 3 times, doesn't matter if the buyer is the same player or not
*/
new global_item_count


/* Bool to store how many times the item was bought for each player
   We use this if we want to limit an item for each player
   Example: If the item limit is set to 3, every player can buy that item 3 times
   
   >>>>>>>>>>>>>>>> ONLY IN CASE WE WANT TO SET LIMIT FOR EACH PLAYER<<<<<<<<<<<<<<
*/
new player_item_count[33]




// Our item Index
new g_itemid

// Cvar for item limit
new cvar_item_limit

public plugin_init() 
{
    
// Register our Extra Item ( "Item Name", Price)
    
g_itemid zp_items_register("Item Name"5)
    
cvar_item_limit register_cvar("zp_item_limit""3")
    
    
// New round event, used to reset the limit of the item every round in case you want to limit an item per round
    
register_event("HLTV""new_round""a""1=0""2=0")
    
}


// We use this only if we want to limit the item per round
public new_round()
{
    
// Reset the global limit every round
    
global_item_count 0
    
    
// Reset the player limit every round
    
    
new Players[32], Numid
    get_players
(PlayersNum"ch")
    for(new 
iNumi++)
    {
        
id Players[i
        
        
player_item_count[id] = 0;
            
        }
    }
    

public 
zp_fw_items_select_pre(iditemignorecost)
{    
    if(
item != g_itemid) return ZP_ITEM_AVAILABLE;
    
    
// Add here all the classes you want the item to NOT BE AVAILABLE
    
if(zp_core_is_zombie(id) || zp_class_survivor_get(id) || zp_class_sniper_get(id)) return ZP_ITEM_DONT_SHOW;
    
    
    
    
/* Here we check for the Limit, and if the limit is reached, the item will be set to NOT AVAILABLE
    __________________________________________________________________________________________________
    */
    
    // In case the limit is globaly, set the item not available
    
    
if(global_item_count >= get_pcvar_num(cvar_item_limit))
    {
        return 
ZP_ITEM_NOT_AVAILABLE
    
}
    
    
// Here we add text at the end of the Extra Item's name for the players to see how many times the item was bought and the limit
    
static text[32]
         
formatex (text charsmax text ) , "[%d/%d]"global_item_countget_pcvar_num(cvar_item_limit))
    
zp_items_menu_text_add text )
    
    
    
    
/* in case the limit is per player, set the item not available
    
    >>>>>>>>>>>>>>>> ONLY IN CASE WE WANT TO SET LIMIT FOR EACH PLAYER<<<<<<<<<<<<<<
    
    */
    //___________________________________________________________________________________________
    
    
    
if(player_item_count[id] >= get_pcvar_num(cvar_item_limit))
    {
        return 
ZP_ITEM_NOT_AVAILABLE
    
}
    
    
// Here we add text at the end of the Extra Item's name for the players to see how many times the item was bought and the limit
    
static text[32]
         
formatex (text charsmax text ) , "[%d/%d]"player_item_count[id], get_pcvar_num(cvar_item_limit))
    
zp_items_menu_text_add text )
    
    return 
ZP_ITEM_AVAILABLE;
}

public 
zp_fw_items_select_post(iditemignorecost)
{
    if(
item != g_itemid) return;
    
    
// Here we count how many times the item was bought by all players togheter
    
global_item_count++
    
    
/* Here we count how many times the item was bought for each player
    
    >>>>>>>>>>>>>>>> ONLY IN CASE WE WANT TO SET LIMIT FOR EACH PLAYER<<<<<<<<<<<<<<
    */
    
player_item_count[id]++
    
    

Depresie is offline
happy_2012
Senior Member
Join Date: Aug 2012
Old 10-10-2015 , 09:25   Re: [ZP50] Addon: Item Limiter (Update 1.1)
Reply With Quote #50

You can use zp_extraitems.ini file for all that you know, you just need to be tricky with the natives of the zombie plague extra items module.
__________________
Discord contacts:
I rarely look at private messages here, but I am very active on Discord!
happy_2012 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 09:27.


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