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

Reply via email to