Jump to content

Water Color


Pinda

Recommended Posts

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

that's simply not how the meta file works :P

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...