Raised This Month: $44 Target: $400
 11% 

Solved Say /rates


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
4ever16
Veteran Member
Join Date: Apr 2015
Old 07-18-2020 , 20:28   Say /rates
Reply With Quote #1

Can some1 make plugin?

When player say /rates in chat server prints. Actualy gets server setings. If server has different rates then different output.

Server min rate: 25 000
Server max rate: 100 000

Thanx in advance.

Last edited by 4ever16; 07-19-2020 at 10:22.
4ever16 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-19-2020 , 09:02   Re: Say /rates
Reply With Quote #2

Code:
#include <amxmodx> new g_pMinRate, g_pMaxRate public plugin_init() {     register_plugin("Get Server Rates", "1.0", "OciXCrom")     register_clcmd("say /rates", "Cmd_Rates")     register_clcmd("say_team /rates", "Cmd_Rates")     g_pMinRate = get_cvar_pointer("sv_minrate")     g_pMaxRate = get_cvar_pointer("sv_maxrate") } public Cmd_Rates(id) {     client_print(id, print_chat, "Server min rate: %i", get_pcvar_num(g_pMinRate))     client_print(id, print_chat, "Server max rate: %i", get_pcvar_num(g_pMaxRate))     return PLUGIN_HANDLED }
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
4ever16
Veteran Member
Join Date: Apr 2015
Old 07-19-2020 , 10:22   Re: Say /rates
Reply With Quote #3

Thanks!
4ever16 is offline
Reply


Thread Tools
Display Modes

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 10:40.


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