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
__________________