RSSy MYGO.pl Opublikowano Lipiec 30, 2019 o 06:31 RSSy Udostępnij Opublikowano Lipiec 30, 2019 o 06:31 WELCOMEINTRODUCTION: For months I've been looking for a way to get rid of those annoying chat reports whenever a CVAR changed (requested by admin, automatic plugins, etc), and I've not found a working solution. So I made this plugin. DESCRIPTION: This plugin adds new commands which replace sm_cvar, with the same functionality, and no chat spamming (it even works on FCVAR_NOTIFY convars). BONUS: You can also print result to server console. And you can also add a delay before a cvar is changed.INFO: Delay must be given as float string. 1.0=1 second // 0.5=half second. If omited, or <=0.0, plugin will change your cvar inmediatelly.REQUERIMENTS: - Sourcemod >= 1.9Change log:version 1.0 [30 JUL 2019] - Initial release.Convars: PHP Code: sm_acvar_server_always "1"Print always result to server console when using sm_acvar and sm_adcvar. It`s a good idea enabling it if you pretend to use "sm_acvar" replacing "sm_cvar". Admin commands: PHP Code: sm_acvar convar_name "convar value".Changes a cvar value without printing result to chat, nor console, nor server. Result will be printed to server if sm_acvar_always is enabled.sm_acvar_console convar_name "convar value".Changes a cvar value printing result to admin`s console only. This command is not affected by sm_acvar_always.sm_acvar_server convar_name "convar value".Changes a cvar value printing result to server`s console only.sm_adcvar float:delay=0.0 convar_name "convar value".Changes a cvar value without printing result to chat, nor console, nor server. CVar will be changed after specified delay. Result will be printed to server if sm_acvar_always is enabled.sm_adcvar_console float:delay=0.0 convar_name "convar value".Changes a cvar value printing result to admin`s console only. CVar will be changed after specified delay. This command is not affected by sm_acvar_always.sm_adcvar_server float:delay=0.0 convar_name "convar value".Changes a cvar value printing result to server`s console only. CVar will be changed after specified delay. Console commands: No user commands implemented.Known bugs: - None at the moment. Please, report here.To do list: - Post suggestions here. Attached Files Get Plugin or Get Source (sm_acvar.sp - 5.5 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się