Jump to content

Make "Mode" display in browser working


XetaQuake

Recommended Posts

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

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

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

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 :wink:

is this a bug in MTA or in the automatic gamemode starter by AlienX?

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...