Raised This Month: $ Target: $400
 0% 

Can I "client_print" to only one team?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
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 #1

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
Reply



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 17:19.


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