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

No round win MONEY


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
enzicz
Junior Member
Join Date: Dec 2012
Old 12-21-2012 , 07:00   No round win MONEY
Reply With Quote #1

Hello, I need a plugin that blocks the money at the end of round. I want it so that you get for winning the round $ 0. Thank you in advance for your help.
enzicz is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-21-2012 , 07:29   Re: No round win MONEY
Reply With Quote #2

Try this :

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN "No RoundEnd Money Bonus"
#define VERSION "0.0.1"

const m_iAccount 115

new bool:g_bIsRestarting
new bool:g_bIsNewRound
new gmsgMoney
new g_iNewRoundPlayerMoney[33]

public 
plugin_init()
{
    
register_pluginPLUGINVERSION"ConnorMcLeod" )

    
register_event("HLTV""Event_HLTV_New_Round""a""1=0""2=0")
    
register_event("TextMsg""Event_TextMsg_Restart""a""2&#Game_C""2&#Game_w")
    
register_forward(FM_PlaybackEvent"OnPlaybackEvent_Post"true)
    
RegisterHam(Ham_Spawn"player""OnCBasePlayer_Spawn_Post"true)

    
gmsgMoney get_user_msgid("Money")
}

public 
Event_TextMsg_Restart()
{
    
g_bIsRestarting true
}

public 
Event_HLTV_New_Round()
{
    if( 
g_bIsRestarting )
    {
        
g_bIsRestarting false
        
return
    }

    
g_bIsNewRound true
    set_msg_block
(gmsgMoneyBLOCK_SET)

    new 
players[32], numid
    get_players
(playersnum"h")
    for(--
numnum>=0num--)
    {
        
id players[num]
        
g_iNewRoundPlayerMoney[id] = get_pdata_int(idm_iAccount)
    }
}

public 
OnCBasePlayer_Spawn_Postid )
{
    if( 
g_bIsNewRound && is_user_alive(id) )
    {
        
set_pdata_int(idm_iAccountg_iNewRoundPlayerMoney[id])
    }
}

public 
OnPlaybackEvent_Post()
{
    if( 
g_bIsNewRound )
    {
        
g_bIsNewRound false
        set_msg_block
(gmsgMoneyBLOCK_NOT)
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
enzicz
Junior Member
Join Date: Dec 2012
Old 12-21-2012 , 07:45   Re: No round win MONEY
Reply With Quote #3

Thank you very much.
enzicz is offline
bloody806
Member
Join Date: Jun 2012
Location: Czech Republic
Old 01-01-2013 , 09:12   Re: No round win MONEY
Reply With Quote #4

I have problem...When you kill someone player so you get money for kill but once someone kill me so my money is reset to $0

Anyone help me? please

Last edited by bloody806; 01-01-2013 at 09:14.
bloody806 is offline
Send a message via Skype™ to bloody806
quilhos
Veteran Member
Join Date: Jun 2010
Old 01-01-2013 , 09:17   Re: No round win MONEY
Reply With Quote #5

Use a money kill manipulator should fix the problem
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!
quilhos is offline
specific
New Member
Join Date: Jun 2012
Old 02-24-2013 , 17:49   Re: No round win MONEY
Reply With Quote #6

ConnorMcLeod - Thank you!! you are the best!
specific 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 05:11.


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