Raised This Month: $ Target: $400
 0% 

[CS:S/CS:GO] CSS Bank (including MySQL support) v1.6.6


Post New Thread Reply   
 
Thread Tools Display Modes
Miraculix
Senior Member
Join Date: Dec 2009
Location: Germany
Old 01-26-2013 , 22:07   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.4.5
Reply With Quote #401

Thx.
Big solution for such a small thing.
__________________
greeetz Miraculix ;-)
Miraculix is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-26-2013 , 23:11   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.4.5
Reply With Quote #402

pretty big exploit though... if I'm out of cash and I spectate a bot, I can deposit the bot's cash into my account... I'll have to test the other way around too... if I withdraw money while controlling a bot, it might go to the bot's cash (I haven't tested that yet).

Plus, I'm sure there's probably a client property that shows if they're controlling a bot or not... just haven't looked hard enough yet.

Might have found it...
CCSPLAYER : m_bIsControllingBot
__________________
View my Plugins | Donate

Last edited by TnTSCS; 01-26-2013 at 23:22.
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 01-27-2013 , 00:48   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.4.5
Reply With Quote #403

Here's a better way to determine if a player is controlling a bot in CS:GO

IsPlayerControllingBot


Then, you could check if IsPlayerControllingBot before you allow them to deposit or withdraw money for CS:GO.

http://pastebin.com/jyeHk37t - modified .sp for you to review - you can use http://www.quickdiff.com/ to quickly see the changes
__________________
View my Plugins | Donate

Last edited by TnTSCS; 01-27-2013 at 01:23.
TnTSCS is offline
Miraculix
Senior Member
Join Date: Dec 2009
Location: Germany
Old 01-27-2013 , 05:44   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.4.6
Reply With Quote #404

Update to v1.4.6

Changelog:
Code:
1.4.6 (2013-01-27)
    ** Fixed: exploit bots in CSGO (Thanks to TnTSCS)
@TnTSCS:
Thanks for an almost ready solution for this bot problem.
-> credits in first post
__________________
greeetz Miraculix ;-)
Miraculix is offline
me-Shoe
Senior Member
Join Date: Apr 2008
Old 01-27-2013 , 08:54   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.4.6
Reply With Quote #405

Thx Miracoulix!!

Now we are all waiting for a new coded Version! ;)
__________________
me-Shoe is offline
Useministrator
Junior Member
Join Date: Jan 2011
Old 02-18-2013 , 14:28   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.4.6
Reply With Quote #406

Hello! I set css_bank_min_players "0". If I play CSS with bots, I get an error.
L 02/18/2013 - 23:212: [SM] Native "GetEntData" reported: Offset -1 is invalid
L 02/18/2013 - 23:212: [SM] Displaying call stack trace for plugin "cssbank.smx":
L 02/18/2013 - 23:212: [SM] [0] Line 560, cssbank.sp::IsPlayerControllingBot()
L 02/18/2013 - 23:212: [SM] [1] Line 693, cssbank.sp::IsBankOn()
L 02/18/2013 - 23:212: [SM] [2] Line 806, cssbank.sp::EventRoundStart()
L 02/18/2013 - 23:215: [SM] Native "GetEntData" reported: Offset -1 is invalid
L 02/18/2013 - 23:215: [SM] Displaying call stack trace for plugin "cssbank.smx":
L 02/18/2013 - 23:215: [SM] [0] Line 560, cssbank.sp::IsPlayerControllingBot()
L 02/18/2013 - 23:215: [SM] [1] Line 720, cssbank.sp::IsBankOnMsg()
L 02/18/2013 - 23:215: [SM] [2] Line 67, cssbank/commands.sp::BankMenu()
L 02/18/2013 - 23:21:41: [SM] Native "GetEntData" reported: Offset -1 is invalid
L 02/18/2013 - 23:21:41: [SM] Displaying call stack trace for plugin "cssbank.smx":
L 02/18/2013 - 23:21:41: [SM] [0] Line 560, cssbank.sp::IsPlayerControllingBot()
L 02/18/2013 - 23:21:41: [SM] [1] Line 720, cssbank.sp::IsBankOnMsg()
L 02/18/2013 - 23:21:41: [SM] [2] Line 67, cssbank/commands.sp::BankMenu()
Useministrator is offline
Miraculix
Senior Member
Join Date: Dec 2009
Location: Germany
Old 02-18-2013 , 14:54   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.4.6
Reply With Quote #407

Hi

Can you test this?
I've no testserver ATM.
__________________
greeetz Miraculix ;-)

Last edited by Miraculix; 02-22-2013 at 10:41. Reason: deleted attachment
Miraculix is offline
Useministrator
Junior Member
Join Date: Jan 2011
Old 02-22-2013 , 09:59   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.4.6
Reply With Quote #408

Thank you very much! All successful work!
Useministrator is offline
Miraculix
Senior Member
Join Date: Dec 2009
Location: Germany
Old 02-22-2013 , 10:30   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.4.6
Reply With Quote #409

Thx for feedback.
Will update first post.

Update to v1.4.7
Changelog:
Code:
1.4.7 (2013-02-22)
	** Fixed: Native "GetEntData" reported: Offset -1 is invalid
__________________
greeetz Miraculix ;-)

Last edited by Miraculix; 02-22-2013 at 10:40.
Miraculix is offline
maxolahird
Veteran Member
Join Date: Dec 2012
Old 02-26-2013 , 16:07   Re: [CS:S/CS:GO] CSS Bank (including MySQL support) v1.4.7
Reply With Quote #410

L 02/26/2013 - 18:02:46: [CLIENTPREFS] [2002]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 02/26/2013 - 18:03:13: [SM] Native "SetCookieMenuItem" reported: Clientprefs is disabled due to a failed database connection
L 02/26/2013 - 18:03:13: [SM] Displaying call stack trace for plugin "cssbank.smx":
L 02/26/2013 - 18:03:13: [SM] [0] Line 300, cssbank.sp::OnPluginStart()
maxolahird 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 19:52.


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