Re: nVault Tutorial
Quote:
PHP Code:
|
Re: nVault Tutorial
1. The player cannot execute the command if he is not connected, remove the is_user_connected() check.
2. Ensure this player has teh flags..or remove the if(access()) check. 3. Why are you assigning the value to iMoney[] before deleting the nvault record? i thought the intend was to clear the bank which IMO should include setting the variable to 0. 4. You do not need to call get_user_authid() again, just use the value in szAuth[id] in your log to get the steamid. 5. Are you setting steam id into szAuth[id] at client_authorized()? I'm tapping out after this. You need to put time in to learn and debug on your own. |
Re: nVault Tutorial
Quote:
|
Re: nVault Tutorial
Hi Bugsy,
I have a question I'm trying to create a shop to buy the items on time for X hours and saves it to nvault But if the player does not choose the purchased item the time will not run out and i already did it but i think the code wierd or complicated. Is there a simple way that can be used by nvault, because I tried to use nvault_touch but I can't control it to remove the item once the time is up while I choose it |
Re: nVault Tutorial
Set the timestamp of the item to a future date when you want it to expire using nvault_touch(). On plugin_cfg(), call nvault_prune( vault , 0 , get_systime() ). When a player attempts to use an item, if the key is not in the vault, its expired.
|
Re: nVault Tutorial
Quote:
|
Re: nVault Tutorial
PHP Code:
PHP Code:
|
Re: nVault Tutorial
Quote:
Code:
public plugin_cfg( ) |
Re: nVault Tutorial
If the intent is to show the menu only if the vault record exists, you'd do:
PHP Code:
|
Re: nVault Tutorial
No, as you see, I want to check if the player has this item and the item time has not expired, it will be marked as a dark color and will not check the price of the item
Code:
formatex( szData, charsmax( szData ), "%s%s \y%i", ( g_PlayerItems[ id ] & ITEMS( i ) && iTS >= get_systime( ) ) ? "\d" : "\w", g_szSkinsData[ i ][ Name ], g_szSkinsData[ i ][ Price ] ) |
All times are GMT -4. The time now is 18:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.