Raised This Month: $ Target: $400
 0% 

setting/getting cash


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ahrex
Junior Member
Join Date: Dec 2005
Location: Perth, Australia
Old 12-31-2005 , 08:33   setting/getting cash
Reply With Quote #1

Hey all,

I'm trying to write a basic SourceMM CS:S plugin to set a player's cash to 0 if they switch to spectator and back to get more money. It's just the setting cash part left at this stage.

How is this best done? I've read through BAILOPAN's "finding functions" devlog tutorials, but I'm not sure if this is actually how I should do it, or if I'm looking in the wrong place.

I saw a thread regarding money offsets. I assume that's for just editing the relevant memory location directly? If so, is the offset from each player's edict_t*?

I also have included cbase.h just to see if I could; I doubt this will help though, since cash is a CS:S specific property, right?

Any help will be greatly appreciated.
Ahrex is offline
 



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 21:48.


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