Raised This Month: $ Target: $400
 0% 

Money as Health


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Fedde
BANNED
Join Date: Sep 2011
Old 10-27-2011 , 08:54   Money as Health
Reply With Quote #1

How I can get the health and put where the money is...

I made this method...
Code:
new Money; public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         Money = get_user_msgid("Money");     register_message(Money,"cmdMoney"); } public cmdMoney(MsgId,MsgDest,id) {     new plyrMoney = get_user_health(id)         set_msg_arg_int(1,ARG_LONG,plyrMoney);     set_pdata_int(id,155,0); }

But when I hurt or get more health the money is not updated.

Thanks.
Fedde 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 14:28.


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