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

[HELP]Menu Limit Item Per Days.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 04-03-2017 , 14:02   [HELP]Menu Limit Item Per Days.
Reply With Quote #1

Hi all.

I've been searching in the internet but i couldn't find what i am searching for.

i need to set the item in shop per days, so you will have it for x days if you buy it and also if server shutdown or restart etc.... your item will be saved in nvault until the x days finish.

P.S : I will appreciate any help, and thanks in advance.
__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality

Last edited by yas17sin; 04-07-2017 at 12:36. Reason: Update!!
yas17sin is offline
Send a message via ICQ to yas17sin
eyal282
Veteran Member
Join Date: Aug 2011
Old 04-03-2017 , 18:04   Re: Item Menu Limit Time/ Item Per Days.
Reply With Quote #2

I will give you this plugin that sets admin for a temporary amount of time. Just make another file that determines the cooldown. I hope your scripting ability is good enough.

https://pastebin.com/XpFrvwtE
eyal282 is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 04-04-2017 , 07:56   Re: Item Menu Limit Time/ Item Per Days.
Reply With Quote #3

thanks for your help, but as i don't know how to use time in coding so any example will be enough to learn !
__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality

Last edited by yas17sin; 04-04-2017 at 07:57.
yas17sin is offline
Send a message via ICQ to yas17sin
Old 04-04-2017, 13:27
yas17sin
This message has been deleted by yas17sin.
Old 04-05-2017, 08:35
yas17sin
This message has been deleted by yas17sin.
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 04-05-2017 , 19:40   Re: [HELP]Item Menu Limit Time/ Item Per Days.
Reply With Quote #4

Please i sloved the first one only, the second one need to be solved, please any help !!!
__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality
yas17sin is offline
Send a message via ICQ to yas17sin
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-07-2017 , 09:52   Re: [HELP]Item Menu Limit Time/ Item Per Days.
Reply With Quote #5

Hey. I dont understand nothing about your 2nd request. You can explain to me ?
__________________









Last edited by CrazY.; 04-07-2017 at 09:52.
CrazY. is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 04-07-2017 , 10:22   Re: [HELP]Item Menu Limit Time/ Item Per Days.
Reply With Quote #6

Okay, in the 2nd request i need to set a item ( special guns [CSO Guns, etc....], special power [Speed, etc...], etc... ) can be buyed per x days like
PHP Code:
menu_additemmenu"\wBalrog-3 \y[650Point] \r[13days]"""0
this was an a example to understand, so i have created the point system and the shop, all i need is to make the items in shop buyable per days, and i can't do that because i don't know how to do it !!!
any help would be appreciate.
__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality

Last edited by yas17sin; 04-07-2017 at 10:23.
yas17sin is offline
Send a message via ICQ to yas17sin
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-07-2017 , 11:40   Re: [HELP]Item Menu Limit Time/ Item Per Days.
Reply With Quote #7

Which part is un-understandable here ?
Code:
#include < amxmodx > #define TIME_BUY 10.0 new bool:g_bHasBought[ 33 ] ; public plugin_init( ) {     register_clcmd( "say /test", "BuyWeapon" ) ; } public BuyWeapon( id ) {     if( g_bHasBought[ id ] )     return PLUGIN_HANDLED ;     give_item( id, "weapon_m4a1" ) ;     g_bHasBought[ id ] = true ;     set_task( TIME_BUY, "ResetBool", id ) ; } public ResetBool( id ) {     g_bHasBought[ id ] = false ;     remove_task( id ) ; }
__________________

Last edited by edon1337; 04-07-2017 at 11:41.
edon1337 is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 04-07-2017 , 12:31   Re: [HELP]Item Menu Limit Time/ Item Per Days.
Reply With Quote #8

the task is for 10 secondes, and i need to set the item in shop per days, so you will have it for x days if you buy it and also if server shutdown or restart etc.... your item will be saved in nvault until the x days finish. that's what i need but thanks anyway.
__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality
yas17sin is offline
Send a message via ICQ to yas17sin
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-07-2017 , 12:33   Re: [HELP]Item Menu Limit Time/ Item Per Days.
Reply With Quote #9

Oh, just wait for Bugsy, I'm unexperienced with nVault.
__________________
edon1337 is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 04-07-2017 , 12:37   Re: [HELP]Menu Limit Item Per Days.
Reply With Quote #10

thanks edon1337, i guess i have to wait.
__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality

Last edited by yas17sin; 04-07-2017 at 12:43.
yas17sin is offline
Send a message via ICQ to yas17sin
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 12:37.


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