AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   hide cvars (https://forums.alliedmods.net/showthread.php?t=322755)

cosminvl 04-03-2020 15:35

hide cvars
 
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

https://steamuserimages-a.akamaihd.n...65C198C753113/

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");




OciXCrom 04-03-2020 15:47

Re: hide cvars
 
By removing the "amx_cvar" thing from the command. This is executed from the server console, you don't need cvar commands in it.

cosminvl 04-03-2020 16:55

Re: hide cvars
 
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");

}

Nutu_ 04-03-2020 18:54

Re: hide cvars
 
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


All times are GMT -4. The time now is 16:17.

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