Raised This Month: $ Target: $400
 0% 

weird problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode