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

Team Advantage by OciXCrom


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-23-2017 , 15:32   Team Advantage by OciXCrom
Reply With Quote #1



Team Advantage


Description
  • With this plugin players from the team that lost X rounds in a row will get a money bonus. The money amount according to the number of loses can be set in the .ini file.

Settings
  • The settings can be found in the [SETTINGS] section in configs/TeamAdvantage.ini
  • ADVANTAGE_TEAM: If you want only a specific team to take advantage of the bonuses - ALL/CT/T.
  • ADVANTAGE_FLAGS: If you want only players with specific flag(s) to take advantage of the bonuses. Type the flags here, otherwise use "!".
  • MAX_MONEY: The maximum amount of money that players can receive.
  • CHAT_PREFIX: The chat prefix.
  • PLAYER_MESSAGE: Whether the players that got a bonus will see an additional message.

Bonuses
  • The bonuses can be added in the [ADVANTAGES] section in configs/TeamAdvantage.ini
  • On a new line add the required number of lost rounds and the bonus money, separated with "=".



__________________

Last edited by OciXCrom; 07-17-2018 at 09:06.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-23-2017 , 15:33   Re: Team Advantage by OciXCrom
Reply With Quote #2

Where can I download this simple plugin?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-23-2017 , 15:50   Re: Team Advantage by OciXCrom
Reply With Quote #3

Excellent question.
I keep forgetting that alliedmods for some unexplained reason doesn't support .rar files.
__________________

Last edited by OciXCrom; 03-23-2017 at 15:50.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 03-23-2017 , 15:51   Re: Team Advantage by OciXCrom
Reply With Quote #4

For an experienced scripter, you must know it.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Old 03-23-2017, 15:56
OciXCrom
This message has been deleted by OciXCrom. Reason: nvm
molotovas
Senior Member
Join Date: Jan 2008
Old 03-23-2017 , 16:37   Re: Team Advantage by OciXCrom
Reply With Quote #5

Mhm compiled this plugin with 4 errors..
(84) warning 213 tag mismatch
(166) warning 213 tag mismatch
(167) warning 213 tag mismatch
(16 warning 213 tag mismatch

Last edited by molotovas; 03-23-2017 at 16:40.
molotovas is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 03-23-2017 , 16:46   Re: Team Advantage by OciXCrom
Reply With Quote #6

Quote:
Originally Posted by OciXCrom View Post
Excellent question.
I keep forgetting that alliedmods for some unexplained reason doesn't support .rar files.
Because .rar sucks. .zip all the way.

Anyway, I know it's kinda not the same, but in CS teams already get more money the more they lose in a row, up to 5 times.
klippy is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-23-2017 , 17:24   Re: Team Advantage by OciXCrom
Reply With Quote #7

@molotovas - you're probably using an older AMXX version. Ignore them, they don't bother the plugin. I'll see how it compiles on older versions and edit the plugin tomorrow.

@KliPPy - yeah, but this plugin has been requested many times and people are using some crappy versions of it, so I decided to make a "stable" one.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
PartialCloning
Senior Member
Join Date: Dec 2015
Old 03-24-2017 , 00:19   Re: Team Advantage by OciXCrom
Reply With Quote #8

It doesn't seem like your code takes into account players that shouldn't receive money such as teamkillers. It would be better if you check when the games gives players money and add the advantage at the same time. You can also check "m_iLoserBonus" (I think it's only available in 1.8.3 but double check) and adjust the advantage based on that so they don't get the default advantage ontop.
PartialCloning is offline
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 03-24-2017 , 04:04   Re: Team Advantage by OciXCrom
Reply With Quote #9

Quote:
Originally Posted by KliPPy View Post
Because .rar sucks. .zip all the way.

Anyway, I know it's kinda not the same, but in CS teams already get more money the more they lose in a row, up to 5 times.
Facepalm, ZIP has nothing on RAR, although RAR sucks too.
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 03-24-2017 , 08:34   Re: Team Advantage by OciXCrom
Reply With Quote #10

Quote:
Originally Posted by rautamiekka View Post
Facepalm, ZIP has nothing on RAR, although RAR sucks too.
True, but .zip standard is fully open source and more widely supported than .rar. On AM packages are small enough that it usually doesn't matter, so you would want to use something that has much better support.
klippy 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 14:39.


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