Raised This Month: $2 Target: $400
 0% 

hide cvars


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cosminvl
Member
Join Date: Mar 2013
Location: Romania
Old 04-03-2020 , 15:35   hide cvars
Reply With Quote #1

hi guys. I have this plugin and every round show me in chat
PLAYER http://CSGO.CSBLACKDEVIL.COM # CS:GO R: * command: set cvar amx_mode to "*** PROTECTED ***"PLAYER http://CSGO.CSBLACKDEVIL.COM # CS:GO R: * command: set cvar mp_freezetime to "3"
how can hide THANK YOU



PHP Code:
#include <amxmodx>


public plugin_init()
{
register_logevent"EventRoundEnd"2"1=Round_End" );
}

public 
EventRoundEnd()
{
server_cmd("amx_cvar amx_mode 1");
server_cmd("amx_reloadadmins");
server_cmd("amx_cvar mp_freezetime 3");


__________________



Last edited by cosminvl; 04-03-2020 at 15:37.
cosminvl is offline
Send a message via Yahoo to cosminvl
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-03-2020 , 15:47   Re: hide cvars
Reply With Quote #2

By removing the "amx_cvar" thing from the command. This is executed from the server console, you don't need cvar commands in it.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
cosminvl
Member
Join Date: Mar 2013
Location: Romania
Old 04-03-2020 , 16:55   Re: hide cvars
Reply With Quote #3

should use like
Quote:
#include <amxmodx>


public plugin_init()
{
register_logevent( "EventRoundEnd", 2, "1=Round_End" );
}

public EventRoundEnd()
{
server_cmd("amx_mode 1");
server_cmd("amx_reloadadmins");
server_cmd("mp_freezetime 3");

}
__________________


cosminvl is offline
Send a message via Yahoo to cosminvl
Nutu_
Veteran Member
Join Date: Mar 2016
Location: Germany
Old 04-03-2020 , 18:54   Re: hide cvars
Reply With Quote #4

why do you need to change these cvars every round? add them in server.cfg or amxx.cfg and they will stay saved
reloadadmins can be used with this plugin if you really need this
__________________
a simple act of caring creates an endless ripple.
Nutu_ 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 18:20.


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