Raised This Month: $ Target: $400
 0% 

How to use cs_get_user_team() and what is the name of a player entity?(ALMOST SOLVED)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-07-2008 , 13:34   Re: How to use cs_get_user_team() and what is the name of a player entity?(ALMOST SOL
Reply With Quote #16

It should be somethung that to update money at the hud :

Code:
    #define OFFSET_CSMONEY 115     new gi_MsgMoney;     // [...]     gi_MsgMoney = get_user_msgid ( "Money" );     // [...]     cs_set_user_money ( id, i_Money )     {         set_pdata_int ( id, OFFSET_MONEY, i_Money );         message_begin ( MSG_ONE, gi_MsgMoney, _, id );         write_long ( i_Money );         write_byte ( 1 );         message_end ();     }
__________________

Last edited by Arkshine; 08-09-2008 at 15:42.
Arkshine is offline
 



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 05:39.


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