Raised This Month: $ Target: $400
 0% 

[Help] EaGle's Gold System


Post New Thread Reply   
 
Thread Tools Display Modes
abdoyassen
Junior Member
Join Date: Apr 2020
Location: egypt
Old 12-25-2020 , 13:03   Re: [Help] EaGle's Gold System
Reply With Quote #31

Quote:
Originally Posted by frOOgy View Post
Hello all,

#I'm am editing EaGle's Gold System and I need some help. Soo, player's golds are saved at player's SteamID and it's looks like this:

PHP Code:
new gSteamID

stock save_golds
index )
{
    
gVault nvault_open"GOLDS_SAVE" );
    
    
get_user_authidindexgSteamIDcharsmaxgSteamID ) );
    
    
formatexvKeycharsmaxvKey ), "%sGOLDS"gSteamID );
    
formatexvDatacharsmaxvData ), "%d"gGoldsindex ] );
    
nvault_setgVaultvKeyvData );
    
nvault_closegVault );
}

stock load_goldsindex )
{
    
gVault nvault_open"GOLDS_SAVE" );
    
    
get_user_authidindexgSteamIDcharsmaxgSteamID ) );

    
formatexvKeycharsmaxvKey ), "%sGOLDS"gSteamID );
    
gGoldsindex ] = nvault_getgVaultvKey );
    
nvault_closegVault );

and I want trying to edit and save on nickname

PHP Code:
new gName

stock save_golds
index )
{
    
gVault nvault_open"GOLDS_SAVE" );
    
    
get_user_nameindexgNamecharsmaxgName ) );
    
    
formatexvKeycharsmaxvKey ), "%sGOLDS"gName );
    
formatexvDatacharsmaxvData ), "%d"gNameindex ] );
    
nvault_setgVaultvKeyvData );
    
nvault_closegVault );
}

stock load_goldsindex )
{
    
gVault nvault_open"GOLDS_SAVE" );
    
    
get_user_nameindexgNamecharsmaxgName ) );

    
formatexvKeycharsmaxvKey ), "%sGOLDS"gName );
    
gGoldsindex ] = nvault_getgVaultvKey );
    
nvault_closegVault );

Soo... I can compile it without errors but if I have golds on this nick: BaD CopY and I change nick then I have save number of golds on all nicks... soo it's saved again on steam id :/

#How I have second problem with EaGle's Gold System:

Problem is, in eagle's gold system player can buy admin. I edit it and now player can buy SLOT and VIP... soo I have problem becouse slot flasg is (b) and VIP flags is (bt)... I have problem becouse if player have slot (first) and player get one _pw. afeter some time, player want to buy VIP too and player get second _pw... Can anyone add some lines here and add if player have slot then player buy VIP, then players slot is automaticly removed permanent... :

PHP Code:
set_user_slot(target)
{
    new 
ident[33], pw[8], linne[150]
    
    
formatex(pw7"%d%d%d%d%d%d%d"random_num(19), random_num(19), random_num(19), random_num(19), random_num(19), random_num(19), random_num(19))
    
    new 
File[120]; get_configsdir(Filecharsmax(File))
    
add(Filecharsmax(File), "/users.ini")
    
    if(!
file_exists(File))
    {
        
set_fail_state("File configs/users.ini Not Found")
    }
    
    
get_user_name(targetidentcharsmax(ident))
    
formatex(linnecharsmax(linne), "^n^n^"%s^" ^"%s^" ^"%s^" ^"a^""identpwSLOT_FLAGS)
    
client_print(targetprint_console"---------------- | X | ----------------")
    
client_print(targetprint_console"You have been kiked because you have buy slot!")
    
client_print(targetprint_console"Your password | setinfo is: %s"pw)
    
client_print(targetprint_console"You should put in your console: setinfo _pw %s"pw)
    
client_print(targetprint_console"---------------- | X | ----------------")
    
server_cmd("kick #%d ^"You buy SLOT successfully [See Console]^""get_user_userid(target))
    
write_file(Filelinne)
    
    
server_cmd("amx_reloadadmins")

This is a part of the code ho give player slot.... give player a VIP is same code

I hope you need more codes (MY) and I hope you can help me...

THX in advance...

u can give me sma
abdoyassen is offline
Send a message via Yahoo to abdoyassen
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 23:23.


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