Raised This Month: $51 Target: $400
 12% 

Random Skies


Post New Thread Reply   
 
Thread Tools Display Modes
johnz
Junior Member
Join Date: Apr 2009
Old 01-16-2010 , 10:15   Re: Random Skies
Reply With Quote #41

#include <amxmodx>
#include <engine>
#include <string>

public updatelights()
{
if ( !get_cvar_num("sv_daylightchange") )
return PLUGIN_CONTINUE

new szHours[2]
new iHours
new szLights[2] = "m"

get_time("%H", szHours, 2)
iHours = str_to_num(szHours)

switch(iHours)
{
case 0:szLights = "b"
case 1:szLights = "c"
case 2:szLights = "d"
case 3:szLights = "e"
case 4:szLights = "g"
case 5:szLights = "i"
case 6:szLights = "k"
case 7:szLights = "m"
case 8:szLights = "o"
case 9:szLights = "q"
case 10:szLights = "s"
case 11:szLights = "u"
case 12:szLights = "w"
case 13:szLights = "u"
case 14:szLights = "s"
case 15:szLights = "q"
case 16:szLights = "o"
case 17:szLights = "m"
case 18:szLights = "k"
case 19:szLights = "i"
case 20:szLights = "g"
case 21:szLights = "e"
case 22:szLights = "d"
case 23:szLights = "c"
default:szLights = "m"

}

set_lights(szLights)

return PLUGIN_CONTINUE
}

public plugin_init()
{
register_plugin("Daylight Change","1.1","Downtown1")
register_cvar("sv_daylightchange", "1")
set_task(60.0, "updatelights", 0, "", 0, "b")
return PLUGIN_CONTINUE
}

Last edited by johnz; 01-16-2010 at 10:19.
johnz is offline
BrownBear
Member
Join Date: May 2011
Location: Malaysia
Old 12-31-2011 , 04:46   Re: Random Skies
Reply With Quote #42

Nice
BrownBear is offline
Isaac999
Senior Member
Join Date: Nov 2011
Location: Home
Old 12-31-2011 , 07:55   Re: Random Skies
Reply With Quote #43

Someone already revived it:

Can i known whats the name of sky of this:
[IMG]http://img16.**************/img16/8630/40075091.th.png[/IMG]
__________________

Last edited by Isaac999; 12-31-2011 at 07:58.
Isaac999 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode