Pinda Posted April 7, 2010 Share Posted April 7, 2010 How to change the watercolor of a, from mta:race to mta 1.0 converted map ? add a client.lua with setWaterColor( 0, 0 , 0, 0 ) ? thanks <---- FailSmiley Link to comment
karlis Posted April 7, 2010 Share Posted April 7, 2010 include client.lua clientside script and do red,green,blue,alpha=0,0,0,0 addEventHandler("onClientResourceStart",getResourceRootElement(),function() setWaterColor(red,green,blue,alpha) end) Link to comment
Pinda Posted April 8, 2010 Author Share Posted April 8, 2010 To make it Clientside just change in the Meta.xml ? Link to comment
Pinda Posted April 8, 2010 Author Share Posted April 8, 2010 I have problems with starting the map in the server, this is what i have : The zip file Meta.xml <?xml version="1.0" encoding="utf-16"?> type="client" <meta> <info type="map" gamemodes="race" name="Promo" author="-" description="Have Fun" /> <map src="Promo.map" /> <settings> <setting name="#time" value="0:0" /> <setting name="#respawn" value="timelimit" /> settings> meta> Client.lua red,green,blue,alpha=0,0,0,0 addEventHandler("onClientResourceStart",getResourceRootElement(),function() setWaterColor(red,green,blue,alpha) end) and the .map file <?xml version="1.0" encoding="utf-16"?> <map mod="deathmatch"> A Few spawnpoints and opjects map> (does needs to be ?) Link to comment
Dark Dragon Posted April 8, 2010 Share Posted April 8, 2010 that's simply not how the meta file works just like with the map file you need to point at what you want to include. just calling a file "client.lua" doesn't make it a client side loaded file. you need to tell mta that there is a file it should load and you also need to tell that it's a client side file like this: <?xml version="1.0" encoding="utf-16"?> <meta> <info type="map" gamemodes="race" name="Promo" author="-" description="Have Fun" /> <script src="client.lua" type="client" /> <map src="Promo.map" /> <settings> <setting name="#time" value="0:0" /> <setting name="#respawn" value="timelimit" /> </settings> </meta> the rest is fine, the map doesn't need to tell that it's a race map. that's what the meta file does. yes it's a bit confusing, basically it's just a left over thing that was needed back when there was no meta.xml. Link to comment
Pinda Posted April 8, 2010 Author Share Posted April 8, 2010 Thanks! You guys Really helped me out! (L) 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