RSSy MYGO.pl Opublikowano Sierpień 27, 2019 o 19:12 RSSy Udostępnij Opublikowano Sierpień 27, 2019 o 19:12 Description: Show random MOTD picture on each round start. Newly connected players will see the default motd.txt. When you press press "H" you should also see the default motd.txt. Using: - You should prepare picture1.jpg, picture2.jpg --- ... --- pictureX.jpg files and upload them to your site (content-server), e.g.: http://your-site.com/folder/picture1.jpg They should be directly accessible from the browser. Compatibility: - L4D1. - L4D2 - (untested) - СS:GO - (untested) - TF2 - (untested) Commands: Settings (ConVars): sm_motd_random_enable - def.: 1 - Enable plugin (1 - On / 0 - Off)sm_motd_random_picture_address - def.: http://your-site.com/folder/picture{}.jpg - Web-address of pictures. {} will be replaced by number (1 ... N)sm_motd_random_count - def.: 10 - Total count of pictures on FTPsm_motd_random_selection_type - def.: 1 - How to select picture number: 0 - randomly, 1 - consistentlysm_motd_random_title - def.: Welcome - Title of MOTD (TF2) dynamicmotd_big - def.: 0 - If enabled, uses a larger MOTD window (TF2-only!). 0 - Disabled (default), 1 - Enabled Using: Copy smx to addons/sourcemod/plugins Credits: * Thanks to "p3tsin" for "String table MOTD replacer"https://forums.alliedmods.net/showpo...3&postcount=12 * Thanks to "psychonic" for "Dynamic MotD Replacer"https://forums.alliedmods.net/showthread.php?t=147193 Most of code is based on above works. So, most regards to that guys. Known bugs: - Possibly, you could see MOTD window appear twice on round start. Support: - support is lazy. I don't have much time for this plugin. Better, donate code. Attached Files Get Plugin or Get Source (sm_motd_random.sp - 17.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ę