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.