Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

[ANY] ADVANCED and silent CVAR change [JUL 2019]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
WELCOME

INTRODUCTION:
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.9

Change 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_adcvarIt`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 chatnor consolenor serverResult 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 chatnor consolenor serverCVar will be changed after specified delayResult 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 onlyCVar 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
File Type: sp 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

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ę
 Udostępnij

×
×
  • Dodaj nową pozycję...