bandi94 Posted January 3, 2012 Share Posted January 3, 2012 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
Kenix Posted January 3, 2012 Share Posted January 3, 2012 (edited) 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 January 3, 2012 by Guest Link to comment
bandi94 Posted January 3, 2012 Author Share Posted January 3, 2012 addEventHandler('onGamemodeMapStart', getRootElement(), function () outputChatBox(get("respawn")) end) Link to comment
bandi94 Posted January 3, 2012 Author Share Posted January 3, 2012 (edited) in the meta is only the oh i think you missunderstund me the script is not in the map file/folder is a totaly diffrent resource Edited January 3, 2012 by Guest Link to comment
Kenix Posted January 3, 2012 Share Posted January 3, 2012 You can use settings for your resource( Can be used for anything map,gamemode etc ) P.S I update code. Link to comment
Kenix Posted January 3, 2012 Share Posted January 3, 2012 No problem Santa coder help you 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