Raised This Month: $51 Target: $400
 12% 

Money saver


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Driving To Heaven
Senior Member
Join Date: Jun 2009
Location: somewhere far away
Old 06-24-2009 , 16:28   Money saver
Reply With Quote #1

I wanna money saver plugin.
I use unlimited_money plugin, so wanna where connect to server, money
save off last time.

I see this, http://forums.alliedmods.net/showthr...ht=Money+saver
but here save money,frag,death..

I need only money.

(4sory for my bad english)
Driving To Heaven is offline
-Acid-
Senior Member
Join Date: Feb 2009
Old 06-24-2009 , 16:48   Re: Money saver
Reply With Quote #2

kk
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <nvault>
#include <cstrike>

new g_szAuthID[33][33];
new 
g_iBot[33];
new 
g_iMoney[33];
new 
g_pEnabled;
new 
g_iVault;
new const 
g_szVaultFile[] = "Save_Money";

public 
plugin_init()
{
    
register_plugin"Save_money" "1.0" "-Acid-" );
    
g_pEnabled register_cvar"sm_enabled" "1" );
    
    
}

public 
plugin_cfg()
{
    
g_iVault nvault_openg_szVaultFile );
    
    if ( 
g_iVault == INVALID_HANDLE )
        
set_fail_state"Error opening nVault" );
}

public 
plugin_end()
{
    
nvault_closeg_iVault );
}

public 
client_putinserverid )
{
    if ( !
get_pcvar_numg_pEnabled ) )
        return 
PLUGIN_CONTINUE;
    
    
g_iBotid ] = is_user_botid );
    
    if ( !
g_iBotid ] )
    {
        
get_user_authidid g_szAuthIDid ] , 32 );
        
        new 
iMoney nvault_getg_iVault g_szAuthIDid ] );
        
        if ( 
iMoney )
        {
            
g_iMoneyid ] = iMoney;
            
cs_set_user_moneyid iMoney );
        }
    }
    
    return 
PLUGIN_CONTINUE;
}

public 
client_disconnectid )
{
    if ( !
get_pcvar_numg_pEnabled ) )
        return 
PLUGIN_CONTINUE;
    
    if ( !
g_iBotid ] && g_iMoneyid ] )
    {
        new 
szMoney];
        
num_to_strg_iMoney[id] , szMoney );
        
        
nvault_setg_iVault g_szAuthIDid ] , szMoney );
    }
    
    
g_iMoneyid ] = 0;
    
g_iBotid ] = 0;
    
    return 
PLUGIN_CONTINUE;

I didn't test it but it compiles with 0 errors.
__________________
-Acid- is offline
Driving To Heaven
Senior Member
Join Date: Jun 2009
Location: somewhere far away
Old 06-24-2009 , 17:17   Re: Money saver
Reply With Quote #3

thx
Driving To Heaven is offline
-Acid-
Senior Member
Join Date: Feb 2009
Old 06-24-2009 , 17:23   Re: Money saver
Reply With Quote #4

np, did u try it?
__________________
-Acid- is offline
Driving To Heaven
Senior Member
Join Date: Jun 2009
Location: somewhere far away
Old 06-24-2009 , 17:38   Re: Money saver
Reply With Quote #5

i think works.
But no!
Not worked!
Driving To Heaven is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 06-24-2009 , 17:39   Re: Money saver
Reply With Quote #6

Quote:
Originally Posted by Driving To Heaven View Post
i think works.
But no!
Not worked!
Conclusion: NO
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
-Acid-
Senior Member
Join Date: Feb 2009
Old 06-24-2009 , 17:54   Re: Money saver
Reply With Quote #7

Quote:
Originally Posted by crazyeffect View Post
Conclusion: NO
Dude i can see that.
__________________
-Acid- is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 06-24-2009 , 17:55   Re: Money saver
Reply With Quote #8

I know...

But first he said Yes, then no and then again no
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
-Acid-
Senior Member
Join Date: Feb 2009
Old 06-24-2009 , 17:59   Re: Money saver
Reply With Quote #9

oh lol. Do u see the problem in the code??
__________________
-Acid- is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 06-24-2009 , 18:40   Re: Money saver
Reply With Quote #10

No

And it compiles fine for me too...
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
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 05:08.


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