![]() |
Server Weather Concept
I havnt expanded it much but im sure this will help someone :D
Anyway here you go. Instructions: Add as a weapon and add to yourself, then add the accounts you want to be able to change the weather in this.allowed and write /weather *Type* the types are as followed. Day, MidDay, Dusk, Night, MidNight, Dawn Enjoy having a play around with this. -Gunderak PHP Code:
|
For some reason I feel like you've been told to do checks on serverside (for allowed players) at least three or four times now.
|
These "concept" threads you've been posting are just becoming spam, especially when they contain bad-practices/errors we've already tried to tell you to fix and because of that it really negates their helpfulness.
1. Don't constantly re-create GUI objects. Create them once, and update their variables. 2. Move the 'allowed' validation to the server-side. 3. You don't need to use a 0.05 loop, for a weather system you can easily get away with 0.5-1. If only staff can change the weather then you don't really need it at all. 4. When you "change the weather" send a trigger to everyone on to update the weather on the client-side. |
Also, I wouldn't really consider a time of day, weather. x_x..
Me: "Hey old chum, what's the weather like up there?". You: "Night." Sound right to you.. ? |
Wouldn't this be more of a day/night system rather then a weather system?
|
il stop posting for a while, and take the time to fix some of my scripts up.
sorry to anyone who is annoyed with all my scripts here. |
| All times are GMT +2. The time now is 09:41 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.