Thread: nVault Tutorial
View Single Post
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 04-30-2022 , 23:49   Re: nVault Tutorial
Reply With Quote #120

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 ] )

if( !( g_PlayerItems[ id ] & ITEMS( iItemID ) ) && iTS < get_systime( ) )
		{
			if( cs_get_user_money( id ) < g_szSkinsData[ iItemID  ][ Price ] )
			{
				goto @Destroy;
			}
			else
			{
				cs_set_user_money( id, cs_get_user_money( id ) - g_szSkinsData[ iItemID  ][ Price ] )
			}
		}
P.s: I want to check the time for each item
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 04-30-2022 at 23:57.
Supremache is offline