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

API Scripting Help [Tut] Creating Item With Limit


Post New Thread Reply   
 
Thread Tools Display Modes
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
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 01-13-2013 , 21:00   Re: [Tut] Creating Item With Limit
Reply With Quote #2

Nice, thx for the tut maybe u can made one about how to made a human class with a especial skill..
wicho is offline
airidas338
Member
Join Date: May 2010
Old 01-14-2013 , 09:45   Re: [Tut] Creating Item With Limit
Reply With Quote #3

Thanks
__________________
if you will see in my posts ".." it means deleted.
airidas338 is offline
myusername
Senior Member
Join Date: Aug 2012
Old 01-14-2013 , 10:39   Re: [Tut] Creating Item With Limit
Reply With Quote #4

Very thankfull. Good job.
__________________
Rest in piece.
myusername is offline
alter
Member
Join Date: Jan 2013
Location: Lithuainia
Old 01-18-2013 , 13:19   Re: [Tut] Creating Item With Limit
Reply With Quote #5

I tryd to set limit, but its showing only my extra item, without "[0/1]"
Tested your script: same problem, please fix it

Last edited by alter; 01-18-2013 at 13:24.
alter is offline
bat
Veteran Member
Join Date: Jul 2012
Old 01-19-2013 , 01:43   Re: [Tut] Creating Item With Limit
Reply With Quote #6

RED.ZONE nice work
bat is offline
Send a message via Skype™ to bat
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 01-19-2013 , 06:06   Re: [Tut] Creating Item With Limit
Reply With Quote #7

Quote:
Originally Posted by alter View Post
I tryd to set limit, but its showing only my extra item, without "[0/1]"
Tested your script: same problem, please fix it
Try the code here it is. I tested it works.
Attached Files
File Type: sma Get Plugin or Get Source (zp50_zombie_evolution.sma - 1188 views - 1.6 KB)
__________________

Last edited by H.RED.ZONE; 01-19-2013 at 06:07.
H.RED.ZONE is offline
alter
Member
Join Date: Jan 2013
Location: Lithuainia
Old 01-19-2013 , 07:42   Re: [Tut] Creating Item With Limit
Reply With Quote #8

This one works.
alter is offline
Gam3ronE
SourceMod Donor
Join Date: Aug 2010
Old 01-21-2013 , 06:39   Re: [Tut] Creating Item With Limit
Reply With Quote #9

Good job H.RED.ZONE! Thank you for taking the time to make this tutorial.
Gam3ronE is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 01-21-2013 , 13:16   Re: [Tut] Creating Item With Limit
Reply With Quote #10

Quote:
Originally Posted by Gam3ronE View Post
Good job H.RED.ZONE! Thank you for taking the time to make this tutorial.
Thank you (:

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

I will make some more tutorials when i get time.
__________________
H.RED.ZONE is offline
Reply


Thread Tools
Display Modes

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 04:00.


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