Raised This Month: $ Target: $400
 0% 

money for losing team


Post New Thread Reply   
 
Thread Tools Display Modes
3emu
Junior Member
Join Date: Jan 2011
Location: BETTER THAN YOUR!
Old 07-08-2014 , 18:30   Re: money for losing team
Reply With Quote #21

Can you make it with cstrike ?
3emu is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 07-08-2014 , 19:00   Re: money for losing team
Reply With Quote #22

Quote:
Originally Posted by 3emu View Post
Can you make it with cstrike ?
For what purpose?
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 02-09-2017 , 18:02   Re: money for losing team
Reply With Quote #23

any code for losing team bonus working for amx 1.8.3? the ones in here does not compile on 1.8.3 and compiles on 1.8.2, but does not work
tarsisd2 is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-09-2017 , 18:30   Re: money for losing team
Reply With Quote #24

don't bump old theard and try this :
PHP Code:
#include <amxmodx>
#include <cstrike>

#define PLUGIN "MoreForLosers"
#define VERSION "1.0"
#define AUTHOR "SweatyBanana"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("CT_Win","Check_CT","a");
    
register_event("Terrorists_Win","Check_T","a");
}

public 
Check_CT(id)
{
    if(
cs_get_user_team(id) == CS_TEAM_T)
    {
        
cs_set_user_money(id, (cs_get_user_money(id) + 1400), 1)
    }
    return 
PLUGIN_HANDLED
}

public 
Check_T(id)
{
    if(
cs_get_user_team(id) == CS_TEAM_CT)
    {
        
cs_set_user_money(id, (cs_get_user_money(id) + 1400), 1)
    }
    return 
PLUGIN_HANDLED

yas17sin is offline
Send a message via ICQ to yas17sin
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 02-11-2017 , 10:29   Re: money for losing team
Reply With Quote #25

Quote:
Originally Posted by yas17sin View Post
don't bump old theard and try this :
PHP Code:
#include <amxmodx>
#include <cstrike>

#define PLUGIN "MoreForLosers"
#define VERSION "1.0"
#define AUTHOR "SweatyBanana"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("CT_Win","Check_CT","a");
    
register_event("Terrorists_Win","Check_T","a");
}

public 
Check_CT(id)
{
    if(
cs_get_user_team(id) == CS_TEAM_T)
    {
        
cs_set_user_money(id, (cs_get_user_money(id) + 1400), 1)
    }
    return 
PLUGIN_HANDLED
}

public 
Check_T(id)
{
    if(
cs_get_user_team(id) == CS_TEAM_CT)
    {
        
cs_set_user_money(id, (cs_get_user_money(id) + 1400), 1)
    }
    return 
PLUGIN_HANDLED

like i said, i tested and didn`t work, i compile ok this one, runs fine on the server but it does not give money for the loosing team, the other ones does not compile in 1.8.3

i think its better to coment an old topic than create a new one
tarsisd2 is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-11-2017 , 15:09   Re: money for losing team
Reply With Quote #26

i tested it on amxodx 1.8.2 and it did work

Last edited by yas17sin; 02-11-2017 at 15:09.
yas17sin is offline
Send a message via ICQ to yas17sin
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 08:10.


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