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

API Scripting Help [Tut] Creating Item With Limit


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 01-13-2013 , 18:48   [Tut] Creating Item With Limit
Reply With Quote #1

This is a requested tutorial.

--------------------------------------------------
Info:
I will make this as simple as i can from the start to finish.
Makeing extra item for zombies that will give them evolution in type of more HP and so on.
Nothing to complicated step by step.
--------------------------------------------------





--------------------------------------------------

1. Start (Setting Autor Plugin Name And Version)
--------------------------------------------------
Spoiler






--------------------------------------------------
2. Item Setting up (Adding item to the zp 5.0 Menu)
--------------------------------------------------
Spoiler






--------------------------------------------------
NOTE:
Now you will have an error in that code that item id is not used.
So lets use it in zp forwards.
--------------------------------------------------





--------------------------------------------------
3. ZP Forwards.
--------------------------------------------------
We have 2 forwards that we use in item so lets start with First one.
I. "zp_fw_items_select_post" Lets add it.
Spoiler






--------------------------------------------------
4. Adding who has item.

--------------------------------------------------
Adding second part this is a part that can set what player can buy item and limit to item same as who can take item and so on
II. "zp_fw_items_select_pre"
Spoiler







--------------------------------------------------
5. Adding Limit to item.
--------------------------------------------------
Info: Limit is added to item in "zp_fw_items_select_pre"
So now i will show you.
The first one is for single player so it will not limit for whole team.



I. Single Player Limit.
Spoiler

II. For Whole Team
Spoiler




Full code for evolution item.
1 Player.
Spoiler


Whole Team.
Spoiler


Any questions post comments.
__________________

Last edited by H.RED.ZONE; 01-13-2013 at 21:33.
H.RED.ZONE 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 03:36.


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