I did the testing on MSVC and the final destination was linux, and it worked without 
change.

Thank you very much for those codes botman, the money one worked flawlessly.

> The Linux HLDS has a -5(Might be +5) offset for all  pvPrivateData things, I
> belive.  And there is a "Money" message.

>From: <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: [hlcoders] pvPrivateData Question
>Date: Thu, 13 Nov 2003 23:15:42 -0500
>
>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
>



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to