Raised This Month: $535 Target: $400

Solved Say /rates

Post New Thread Reply   
Thread Tools Display Modes
Author Message
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
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-19-2020 , 09:02   Re: Say /rates
Reply With Quote #2

#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
Veteran Member
Join Date: Apr 2015
Old 07-19-2020 , 10:22   Re: Say /rates
Reply With Quote #3

4ever16 is offline

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 16:07.

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