Jump to content

mapInfo (respawn)


bandi94

Recommended Posts

i am searching/trying to check if a map has "respawn" timelimited or none i need to know on every map start if the map is respawn or not

how can i get the respawn value (timelimited/none) from meta i need something like if respawn=="none" then .... thx a lot

Link to comment

lol?

Example how use it:

Your meta map for example:

<meta> 
    <info gamemodes="some" type="map" name="some" author="...." version="1.0.1" description="..."></info> 
    <map src="some.map" dimension="0"></map> 
    <settings> 
        <setting name="#test" value="[ 1 ]"></setting> 
        <setting name="#minplayers" value="[ 0 ]"></setting> 
        <setting name="#maxplayers" value="[ 128 ]"></setting> 
        <setting name="#gravity" value="[ 0.008000 ]"></setting> 
        <setting name="#weather" value="[ 0 ]"></setting> 
        <setting name="#time" value="0:0"></setting> 
        <setting name="#locked_time" value="[ false ]"></setting> 
        <setting name="#waveheight" value="[ 0 ]"></setting> 
        <setting name="#gamespeed" value="[ 1 ]"></setting> 
    </settings> 
</meta> 
  

  
addEventHandler( "onGamemodeMapStart",root, 
    function( resourceStart )  
        outputChatBox( tostring( get(  getResourceName ( resourceStart )..".test" ) ) ) -- output 1 
    end  
) 
  

p.s This is example

I update code

Edited by Guest
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...