Quote:
Originally Posted by KiLLeR.
It must be: (CODE)
|
I can't get it to work, but I found another plugin that does this.
But only when you type /money in chat.
Is there a way to make players say /money on spawn using engclient_cmd?
I'm obviously no programmer, thanks for being patient.
here is the plugin I'm trying to change:
Code:
/* say_team /money // client cmd */
#include <amxmodx>
#include <cstrike>
#define PLUGIN "show_money"
#define VERSION "1.0"
#define AUTHOR "Weejee & n2k"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /money", "cmd_money")
register_clcmd("say_team /money", "cmd_money")
}
public cmd_money(id) {
new iMoney;
new money_Buffer[100+1];
iMoney = cs_get_user_money(id);
format( money_Buffer, 100, "$%d", iMoney );
engclient_cmd( id, "say_team", money_Buffer );
}