XetaQuake Posted February 24, 2008 Share Posted February 24, 2008 hi, how can i make the "Mode" display in the browser working? there a just "MTA:SA" but i want to display the name of my gamemode note: i don´t use maps in different .zip files (or folders) i only have one .map file in the same folder as the gamemode for car spawns i hope for answer, thanks Link to comment
50p Posted February 24, 2008 Share Posted February 24, 2008 http://development.mtasa.com/index.php? ... _functions Link to comment
XetaQuake Posted February 24, 2008 Author Share Posted February 24, 2008 thanks for the link function mapName() setMapName("Name-of-the-Map") end addEventHandler ( "onResourceStart", getResourceRootElement(), mapName ) function modeName() setGameType("Name-of-the-Gamemode") end addEventHandler ( "onResourceStart", getResourceRootElement(), modeName ) don´t work its all server side, any ideas? Link to comment
50p Posted February 24, 2008 Share Posted February 24, 2008 Try this one: function mapName() setMapName("Name-of-the-Map") end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), mapName ) function modeName() setGameType("Name-of-the-Gamemode") end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), modeName ) Link to comment
XetaQuake Posted February 24, 2008 Author Share Posted February 24, 2008 that have i allready testing, No changes I am realy wondering that this dont work...i can´t see ANY problems in the script Link to comment
50p Posted February 24, 2008 Share Posted February 24, 2008 Do you have any warnings or errors while gamemode start/run? /debugscript 3 Link to comment
XetaQuake Posted February 24, 2008 Author Share Posted February 24, 2008 no, by nothing of this 2 scripts Link to comment
50p Posted February 24, 2008 Share Posted February 24, 2008 How isn't it working? Just doesn't display the gamemode's and map's name? Have you tried to refresh the server list? Link to comment
XetaQuake Posted February 24, 2008 Author Share Posted February 24, 2008 ah its works yet but only when i make a /votemode for the gamemode when i start the server and let the gamemode automaticaly starting, it dont work NOTE: i use the gamemode starter, i have the gamemode don´t in the mtaserver.conf is this a bug in MTA or in the automatic gamemode starter by AlienX? 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