Random Skies
1 Attachment(s)
Random Skies version 1.1 Description: - On map end or server restart, the server sky will change. Cvars: - sv_skies_mode: 0 - if is set to 0, will remain the default map skyname. 1 - if is set to 1, the sky will change on map end or server restart. Note!: - Updated to version 1.1 - thanks Connor Images: Before a restart :arrow: [IMG]http://img22.**************/img22/6010/65381564.th.png[/IMG] After a restart :arrow: [IMG]http://img16.**************/img16/7215/41732585.th.png[/IMG] After another restart :arrow: [IMG]http://img16.**************/img16/8630/40075091.th.png[/IMG] |
Re: Random Skies
Nice Idea btw
|
Re: Random Skies
You should set the cvar in plugin_precache function.
Your random should start from 0, not 1, and the rand variable is useless since you use it only 1 time. Hardcode skies size prevents user from disabling some skies names, you don't need to specify the since as it's a const, you can use sizeof or charsmax in your code. Include amxmisc increase your plugin size. PHP Code:
|
Re: Random Skies
yeah, but in plugin_precache() the sky will change after map end? :shock:
EDIT: Code:
Include amxmisc increase your plugin size. |
Re: Random Skies
I think it would change it for the current map but I'm not sure. At the begining or at the end shouldn't really matter except the very first boot of the server won't be random if it changes it at the end.
|
Re: Random Skies
I updated the plugin, but connor, your version doesn't work because i tested it... my version now, should work fine 4 all players :crab:
|
Re: Random Skies
Good idea and well done :D
|
Re: Random Skies
Quote:
|
Re: Random Skies
@ fysiks d-o made on like this long ago for dod, you should check that out
|
Re: Random Skies
Nice.
PS: Poate il fac eu din nou ^^ glumesc :P |
All times are GMT -4. The time now is 07:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.