Try this:
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#define PLUGIN "Money replace"
#define VERSION "0.0.0.0"
#define AUTHOR "authors"
new g_msgMoney
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
g_msgMoney=get_user_msgid("Money")
register_event("Money", "event_Money", "b")
}
public event_Money(id)
{
message_begin(MSG_ONE, g_msgMoney, _, id)
write_long(cm_get_user_cash(id))
write_byte(read_data(2))
message_end()
return PLUGIN_HANDLED
}
__________________