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

Which events changes money of player in CS: S?


Post New Thread Reply   
 
Thread Tools Display Modes
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Old 07-09-2007 , 13:37   Re: Which events changes money of player in CS: S?
Reply With Quote #11

Yeah, he's got that. Problem is, he wants to know when the game changes m_iAccount.
__________________
I'm a blast from the past!
ferret is offline
sumguy14
Senior Member
Join Date: Apr 2006
Old 07-09-2007 , 13:39   Re: Which events changes money of player in CS: S?
Reply With Quote #12

Oh, I guess you can use an array and a loop, would work, but it's not that pretty

Just store how much money they have, then .1 seconds later check again, if there is a change then there money changed, then store their current money to the array and check again .1 seconds again.
sumguy14 is offline
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Old 07-09-2007 , 13:41   Re: Which events changes money of player in CS: S?
Reply With Quote #13

eww
__________________
I'm a blast from the past!
ferret is offline
sumguy14
Senior Member
Join Date: Apr 2006
Old 07-09-2007 , 13:43   Re: Which events changes money of player in CS: S?
Reply With Quote #14

Yeah i know, think of anything better?
lol

Events are your best bet, your list looks pretty good, I don't see any others that would change money, unless an admin does it.

Shaman, or you can just check when they spawn, they most likely aren't going to be using their money when they are rescuing hosties or killing people.
sumguy14 is offline
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 07-09-2007 , 15:11   Re: Which events changes money of player in CS: S?
Reply With Quote #15

That's the problem Players will earn lots of money in one round, maybe 10k in one action and they will use lots of money like 40k at one time, so I have to deal with lot's of money Maybe I can hook events that often happen and transfer money to bank if they have more than 10k.
__________________
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
pRED*
Join Date: Dec 2006
Old 07-09-2007 , 18:02   Re: Which events changes money of player in CS: S?
Reply With Quote #16

Yeah either hook events that give people money or just run your check on round end (before they get cut back to 16k.)
pRED* 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 10:55.


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