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

Restrict some items on defined hours


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RedDevilHunter
Member
Join Date: Aug 2011
Location: Root Destination
Old 12-16-2013 , 15:57   Restrict some items on defined hours
Reply With Quote #1

is there a way to disable some items on hours like 12:00-120?

It try some code but fails and fails,

i want to block some zombie plague items on a specified time.
RedDevilHunter is offline
Send a message via Yahoo to RedDevilHunter Send a message via Skype™ to RedDevilHunter
KuvZz
Member
Join Date: Sep 2013
Location: Spain
Old 12-16-2013 , 16:07   Re: Restrict some items on defined hours
Reply With Quote #2

I dont' know anything about ZP but maybe http://forums.alliedmods.net/showthread.php?t=113547
__________________
KuvZz is offline
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 12-16-2013 , 16:59   Re: Restrict some items on defined hours
Reply With Quote #3

I'm not sure if this can work. I'm just hoping so.

Get the items id that you will restrict by its name with zp_get_extra_item_id(const name[]).

Use zp_fw_items_select_pre(id, itemid) forward, and check if the itemid you will restrict equals to itemid on the forward. If true return ZP_ITEM_NOT_AVAILABLE else return ZP_ITEM_AVAILABLE. And don't forget to check the time too.

Also don't forget to include zp50_items and zombieplague

Last edited by akcaliberg; 12-16-2013 at 16:59.
akcaliberg 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 20:43.


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