Never worked with Metamod before, but I assume you can listen for, and catch, the gmsgxxxxxx variables when they're registered by the engine.... find the one that looks right (gmsgMoney or something like that).
At 17:15 14/11/2003, you wrote:
Thank you _very_ much, botman, after very many runs I was able to figure out what I needed.
I was looking for where Counter-Strike stores its money and came up with this code that worked: money = (short *)(pPlayer->edict()->pvPrivateData); money+=230; *money = (short)amount;
The only problem I have now is updating the HUD to display the new money... I know I need to use: MESSAGE_BEGIN(MSG_ONE, TYPE, NULL, pPlayer->pEntity); WRITE_LONG(amount); WRITE_BYTE(true); MESSAGE_END();
I don't know anything about working with the HUD... the problem is I don't know what TYPE to use. Any insight?
Thanks! -----David "BAILOPAN" Anderson
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
---------- Programmer and Modeller for The Pokemod http://pokemod.phantasmsoft.com
----------
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

