kalitonchik Posted January 4, 2009 Share Posted January 4, 2009 setSkyGradient Many people tried to run this function, but due to lack of knowledge of scripts they have not got to run this function. So please help This function is needed for more impressions of the game mode. This option changes the color of the sky on the system RGB This means you can make a color of the sky which want Whose information is provided on the http://development.mtasa.com/index.php? ... kyGradient enough to launch the setSkyGradient function of the server Also, I still do not know where to fit setSkyGradient function in game mode, or in another place This effect of nature seen in some freeroam servers and :::eXo|Clanserver:::Zombie Mod||www.exo-clan.net so i will do screenshots in the popular server with unusual game mode - Zombie Mode Benefits Beautiful weather is not typical for GTA SA This feature makes the game more intense and nice Help solve the problem I think this feature is interested in many of the owners of servers Thank you for your attention Link to comment
darkdreamingdan Posted January 5, 2009 Share Posted January 5, 2009 It doesnt really matter where you put it. Just do it when the resource/gamemode starts, using onGamemodeStart if its a gamemode or onResourceStart if its a normal resource. Link to comment
kalitonchik Posted January 5, 2009 Author Share Posted January 5, 2009 can somebody dares to show a script that works Link to comment
50p Posted January 5, 2009 Share Posted January 5, 2009 can somebody dares to show a script that works -- server-side -- addEventHandler( "onResourceStart", getResourceRootElement(), function( ) setSkyGradient( 255, 0, 0, 0, 0, 0 ); -- Red to Black end ) Link to comment
kalitonchik Posted January 5, 2009 Author Share Posted January 5, 2009 50p when you show the script I said uuu-weee but where should put your script Link to comment
50p Posted January 5, 2009 Share Posted January 5, 2009 If you have ever searched you would have found this within 5sec. reading main page on wiki http://development.mtasa.com/index.php? ... scripts.3F I'm not gonna repeat myself READ WIKI! If you don't understand wiki you have problem with reading and should learn english more before starting scripting. Link to comment
kalitonchik Posted January 6, 2009 Author Share Posted January 6, 2009 I canэt run this script because error in this line addEventHandler( "onResourceStart", getResourceRootElement(), whot there is not enough !? and skygradient script need to be server.lua client.lua ore only client.lua Link to comment
Gamesnert Posted January 6, 2009 Share Posted January 6, 2009 and skygradient script need to be server.lua client.lua ore only client.lua http://development.mtasa.com/index.php?title=Main_Page 1. Click on this link 2. Type setSkyGradient in search. 3. Press enter. 4. Look on the really-obvious-colorful-thing on the top of the page. 5. Use the wiki for now on to get questions like this answered. Was that so hard? And about the getResourceRootElement, change it to getResourceRootElement(getThisResource()). Because I think the theResource parameter is only optional in 1.0. Link to comment
kalitonchik Posted January 6, 2009 Author Share Posted January 6, 2009 someone might say whot is wrong I run freeroam freeroam loaded then run the SkyGradient script but the script does not work because the line is not something as necessary in this line addEventHandler( "onResourceStart", getResourceRootElement(), 50p so I do not scripter but I want to bring to the script worked link that you gave me = useful for me but I can work with meta.xml but I do not know why the script is not working, so I have a question how much should be lua scripts Two scripts, one client second server? or one (server ore client) I do not know what the problem and how to solve it I really need this script I am not able to solve the problem and I use the alpha build dp2.1 Link to comment
kalitonchik Posted January 6, 2009 Author Share Posted January 6, 2009 I will try change it to getResourceRootElement(getThisResource()) Link to comment
kalitonchik Posted January 6, 2009 Author Share Posted January 6, 2009 I respect very much help I was able to run the script-only with your help the problem was been in the line, he probably did not know where to take command but now everything is working as a confirmation of my screenshoot Once again, give respect 50p and Gamesnert! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now