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

money for losing team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stealth_knife
Junior Member
Join Date: Apr 2005
Old 05-24-2006 , 00:38   money for losing team
Reply With Quote #1

can someone make a plugin that always give whoever team loses another +$1400? I have PTB on my server but it's ineffective sometimes.
This will help balancing teams even more.
stealth_knife is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-24-2006 , 23:33  
Reply With Quote #2

Code:
/************************************** *      MFL.SMA (More For Losers)      * *                                     * *     Gives players on the losing     * *          team $1,400 more.          * *                                     * **************************************/
Attached Files
File Type: sma Get Plugin or Get Source (mfl.sma - 1622 views - 930 Bytes)
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-25-2006 , 09:45  
Reply With Quote #3

Hope that helps.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
stealth_knife
Junior Member
Join Date: Apr 2005
Old 05-25-2006 , 16:36  
Reply With Quote #4

Thanks a lot
stealth_knife is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-25-2006 , 16:40  
Reply With Quote #5

+karma is appriciated and returned


np
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Tiny
Senior Member
Join Date: Jun 2004
Location: France
Old 05-02-2007 , 13:25   Re: money for losing team
Reply With Quote #6

can you code it so when a team looses X times, they get an amount of money and if they loose the X+1 round they get 2 times the amount and so on; loose the x+2 round they get 3 times the amount, ...........
__________________
KiKoo et Bisous
Tiny is offline
Hi-NRG
New Member
Join Date: Jan 2008
Old 01-12-2008 , 21:16   Re: money for losing team
Reply With Quote #7

Yes, it will be nice
Hi-NRG is offline
slypanther
BANNED
Join Date: Jan 2008
Old 01-13-2008 , 06:31   Re: money for losing team
Reply With Quote #8

i thought mfl meant modern forign languages
slypanther is offline
Maurice
Senior Member
Join Date: Nov 2006
Location: Netherlands
Old 04-10-2008 , 12:51   Re: money for losing team
Reply With Quote #9

When i use this plugin with 1.8 it don't work.

L 04/10/2008 - 18:44:50: Invalid event (name "CT_Win") (plugin "mfl.amxx")
L 04/10/2008 - 18:44:50: [AMXX] Displaying debug trace (plugin "mfl.amxx")
L 04/10/2008 - 18:44:50: [AMXX] Run time error 10: native error (native "register_event")
L 04/10/2008 - 18:44:50: [AMXX] [0] mfl.sma::plugin_init (line 20)

Because the plugin writer is banned maybe someone else can fix it because it is something i realy like to use.
__________________
Luck? Luck is only one feeling of amazement concerning a seemingly incidental circumstance which one himself must create.
Maurice is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-10-2008 , 13:50   Re: money for losing team
Reply With Quote #10

I was using (now i use a mp_roundstartmoney) this one that works fine :

PHP Code:
/* AMX Mod X Plugin

* (c) Copyright 2008, ConnorMcLeod 
* This file is provided as is (no warranties). 

*/ 

#include <amxmodx>
#include <fakemeta>

#define OFFSET_TEAM        114
#define OFFSET_MONEY    115
#define MAX_MONEY        16000

new g_iMaxPlayers
new g_iStreak[2]
new 
g_msgidMoney
new g_pcvarStreakg_pcvarMoney

public plugin_init()
{
    
register_plugin("Team Advantage""0.1""ConnorMcLeod")
//    register_dictionary("team_advantage.txt")

    
g_pcvarStreak register_cvar("team_advantage_streak""3")
    
g_pcvarMoney register_cvar("team_advantage_money""700")

    
register_event("TextMsg""eRestart""a""2&#Game_C""2&#Game_w")
    
register_logevent("Team_Win"6"0=Team")
}

public 
plugin_cfg()
{
    
g_iMaxPlayers get_maxplayers()
    
g_msgidMoney get_user_msgid("Money")
}

public 
eRestart()
{
    
arrayset(g_iStreak0sizeof(g_iStreak))
}

public 
Team_Win()
{
    static 
szTeam[3]
    
read_logargv(1szTeam2)

    switch(
szTeam[0])
    {
        case 
'T':
        {
            
g_iStreak[1]++
            
g_iStreak[0] = 0
            process_money
(2)
        }
        case 
'C':
        {
            
g_iStreak[1] = 0
            g_iStreak
[0]++
            
process_money(1)
        }
    }
}

process_money(iTeam)
{
    static 
idiMoneyBonusiMoneyiNewMoney

    
if(!( iMoneyBonus get_pcvar_num(g_pcvarMoney) * (g_iStreak[iTeam-1] / get_pcvar_num(g_pcvarStreak)) ))
        return

//    client_print(0, print_chat, " ** [BRE] %L %L", LANG_PLAYER, iTeam == 1 ? "TA_TEAM_T" : "TA_TEAM_CT", LANG_PLAYER, "TA_AD", iMoneyBonus)

    
for(id 1id <= g_iMaxPlayersid++)
    {
        if(
pev_valid(id) != 2)
            continue

        if(
get_pdata_int(idOFFSET_TEAM) != iTeam)
            continue

        if((
iMoney get_pdata_int(idOFFSET_MONEY))>=MAX_MONEY)
            continue

        
iNewMoney min(iMoney iMoneyBonusMAX_MONEY)

        
set_pdata_int(idOFFSET_MONEYiNewMoney)

        
message_begin(MSG_ONE_UNRELIABLEg_msgidMoney_id)
        
write_long(iNewMoney)    
        
write_byte(1)
        
message_end()
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 18:57.


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