Thread: weird problem
View Single Post
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-16-2022 , 08:17   Re: weird problem
Reply With Quote #2

The plugin from the link sets the player's money to 0 and uses a fake message to display a different amount in the bottom-right corner that cannot be retrieved with cstrike.inc's money functions.

Try replacing every instance of sending the "g_MsgMoney" message in the .sma like this:

Code:
message_begin(MSG_ONE_UNRELIABLE, g_MsgMoney, _, id) write_long(zp_cs_player_money[id]); write_byte(1); message_end();

To:

Code:
emessage_begin(MSG_ONE_UNRELIABLE, g_MsgMoney, _, id) ewrite_long(zp_cs_player_money[id]); ewrite_byte(1); emessage_end();

Just add "e" in front of every function between "message_begin" and "message_end".

The difference between "message" and "emessage" is that the latter can be detected by other plugins.
__________________

Last edited by OciXCrom; 01-16-2022 at 08:21.
OciXCrom is offline
Send a message via Skype™ to OciXCrom