Raised This Month: $ Target: $400
 0% 

Problem with Moneymod and Blockmaker by Necro


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
h0ppetau
Junior Member
Join Date: May 2012
Old 05-11-2012 , 08:53   Re: Problem with Moneymod and Blockmaker by Necro
Reply With Quote #1

I sorted it out by adding:



PHP Code:
native mm_get_money(client);

native mm_set_money(clientmoney);

stock mm_add_money(clientmoney)
{
    return 
mm_set_money(clientmm_get_money(client) + money);

PHP Code:
actionMoney(idOverrideTimer)
{
    new 
Float:fTime halflife_time();
    
    if (
fTime >= g_money_next_use[id] || OverrideTimer)
    {
    if ( 
get_user_team id ) == )
    {
        
mm_add_money(id75);
        
ColorChat(idGREEN"[%s]^x03 You have been given^x04 75 Money^x03!"g_prefix);
    }
    
        
g_money_next_use[id] = fTime get_cvar_float("bm_moneycooldown");
            
    }
    else
    {
        
set_hudmessage(g_hud_redg_hud_greeng_hud_blueg_text_xg_text_yg_hud_effectsg_hud_fx_timeg_hud_hold_timeg_hud_fade_in_timeg_hud_fade_out_timeg_hud_channel);
        
show_hudmessage(id"[%s]^nWait Time: One Round"g_prefixg_money_next_use[id] - fTime);
    }
    return 
PLUGIN_HANDLED;


This thread can be closed :-)
h0ppetau is offline
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 00:24.


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