[~CG~] Cool Gamers | Forum | Server : 188.165.197.212

Would you like to react to this message? Create an account in a few clicks or log in to continue.

Welcome at ~CG~ Cool Gamers Forum

Le deal à ne pas rater :
Funko POP! Jumbo One Piece Kaido Dragon Form : où l’acheter ?
Voir le deal

    How to change Water Color and Sky Color ?

    avatar
    ~CG~BlackStorm


    Posts : 45
    Join date : 2011-02-24
    Location : France

     How to change Water Color and Sky Color ? Empty How to change Water Color and Sky Color ?

    Post  ~CG~BlackStorm Sat 26 Mar - 21:52

    Hello,

    [size=150]This is a short tutorial on how to change the color of sky and water in your maps.[/size]

    Things u need:
    - Notepad++, u can download it here: [Only admins are allowed to see this link]
    - MTA San Andreas (obviusly)

    1.- After download and install Notepad++, go to your map settings: C:\...\MTA San Andreas\server\mods\deathmatch\resources\NameOfYourMap, open meta.xml and put this line: <script src="client.lua" type="client" />


    u will get this meta:

    <meta>
    <script src="client.lua" type="client" />
    <info gamemodes="race" type="map" version="1.0.0" />
    <map src="NameOfYourMap.map" dimension="0" />
    <settings>
    <setting name="#minplayers" value="[ 0 ]" />
    <setting name="#maxplayers" value="[ 128 ]" />
    <setting name="#gravity" value="[ 0.008000 ]" />
    <setting name="#weather" value="[ 0 ]" />
    <setting name="#time" value="12:0" />
    <setting name="#locked_time" value="[ false ]" />
    <setting name="#waveheight" value="[ 0 ]" />
    <setting name="#gamespeed" value="[ 1 ]" />
    </settings>
    </meta>

    and Save it.

    2.- Create a new notepad++ file and put this:

    function startclient ()


    setSkyGradient( 0 , 0 , 0 , 0 , 0 , 0 )
    setWaterColor( 0, 0 , 255 )


    end






    addEventHandler( "onClientResourceStart", resourceRoot, startclient )

    and save as client.lua <-- lua file.

     How to change Water Color and Sky Color ? Testfj

    3.- Open MTA, and press F5 or test, u will can see the colours.

    setSkyGradient: Color of Sky
    setWaterColor: Color of Water

    U can get code here: [Only admins are allowed to see this link]

      Current date/time is Fri 17 May - 2:59