RSSy MYGO.pl Opublikowano Maj 3, 2018 o 04:24 RSSy Udostępnij Opublikowano Maj 3, 2018 o 04:24 This is my first SourceMod plugin! Any feedback would be appreciated. AutoAllTalk is a simple plugin that enables sv_alltalk when your player count drops below a certain threshold. For example, if your threshold is 17, sv_alltalk will be 1 until there are 17 players in the server, at which point the plugin will set sv_alltalk to 0. Once the player count drops back down to 16 or less, sv_alltalk will be set back to 1.CVARS sm_aat_threshold - player count at which to disable alltalk. Dependencies [Dev only] More Colors Plans If there's interest, I'd port this plugin to other games. It currently only hooks TF2-exclusive events. Once I have some play testers, I have to double-check I hooked all the right events. Changelog Commit history available at this Gist.2018-05-03 (v1.0.1) Switched to using GetConvarInt() rather than <convar>.IntValue 2018-05-02 (v1.0.0) Initial creation Attached Files Get Plugin or Get Source (autoalltalk.sp - 5.0 KB) autoalltalk.smx (11.3 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ę