Raised This Month: $32 Target: $400
 8% 

nVault Tutorial


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 09-09-2020 , 16:57   Re: nVault Tutorial
Reply With Quote #18

Quote:
Originally Posted by Bugsy View Post
Your savedata and loaddata look good, though you can just do: iMoney[id] = nvault_get(iVault, szAuth )
So what i want to do it this ?
PHP Code:

new szAuth[MAX_PLAYERS+1][35// Set userid in global var

public ResetBank(id)
{
    if (!
is_user_connected(id))
        return 
PLUGIN_HANDLED;

    if (
access(idFLAGS_RESET_BANK))
    {
        
iMoney[id] = nvault_get(iVaultszAuth[id] )
            
nvault_remove(iVaultszAuth[id]);
   
        
get_user_nameidszAdminNamecharsmax(szAdminName))
        
get_user_authid(idszPlayerIDcharsmax(szPlayerID));
        
        
console_print(id"[ADMIN] %s Reset Bank"szAdminName)
        
Log("[RESETMONEY] Admin: %s || SteamID: %s Reset Bank"szAdminNameszPlayerID)
        
        
ChatColor(0"^x01[ADMIN]^x04 %s^x01: Reset bank."szAdminName)
        
        return 
PLUGIN_HANDLED
        
    
}
    return 
PLUGIN_HANDLED    
    

I will try another idea

Last edited by Supremache; 09-09-2020 at 17:29.
Supremache is offline
 


Thread Tools
Display Modes

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:35.


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