View Single Post
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