View Single Post
suhdude
Senior Member
Join Date: Mar 2016
Location: Sweden
Old 11-08-2017 , 09:08   Re: Can I "client_print" to only one team?
Reply With Quote #9

Quote:
Originally Posted by KiLLeR. View Post
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 ); }

Last edited by suhdude; 11-08-2017 at 09:09.
suhdude is offline