~DarkRacer~ Posted March 26, 2013 Share Posted March 26, 2013 How can i disable the vote system in the race and make it like whenever the map finish it start a new random map??? Link to comment
denny199 Posted March 26, 2013 Share Posted March 26, 2013 admin>resources>(select)race>settings>random map something like that set that to "true" Link to comment
~DarkRacer~ Posted March 26, 2013 Author Share Posted March 26, 2013 admin>resources>(select)race>settings>random map something like that set that to "true" Thanks but how i can get the next map's name?? because i want to make a dxText that tells you what's the next map is. Link to comment
codeluaeveryday Posted March 26, 2013 Share Posted March 26, 2013 Techniqually you cannot guess the next map of a random map, I think if you could find a way to set the next map to a random choice, then you could create DX text for it. Link to comment
ZL|LuCaS Posted March 26, 2013 Share Posted March 26, 2013 admin>resources>(select)race>settings>random map something like that set that to "true" Thanks but how i can get the next map's name?? because i want to make a dxText that tells you what's the next map is. function getNextMap() if (g_ForcedNextMap) then return getMapName( g_ForcedNextMap ) else return "Random" end end Link to comment
~DarkRacer~ Posted March 26, 2013 Author Share Posted March 26, 2013 admin>resources>(select)race>settings>random map something like that set that to "true" Thanks but how i can get the next map's name?? because i want to make a dxText that tells you what's the next map is. function getNextMap() if (g_ForcedNextMap) then return getMapName( g_ForcedNextMap ) else return "Random" end end g_ForcedNextMap is Undefined Before! Link to comment
Markeloff Posted March 26, 2013 Share Posted March 26, 2013 You can edit the map cycle. Link to comment
ZL|LuCaS Posted March 26, 2013 Share Posted March 26, 2013 You can edit the map cycle. That makes no sense. Link to comment
~DarkRacer~ Posted March 26, 2013 Author Share Posted March 26, 2013 You can edit the map cycle. How would i do that?? give me an example Link to comment
denny199 Posted March 27, 2013 Share Posted March 27, 2013 You can make your own random map system, like: Looping trough 9 maps or something at the beginning from the match then pick a random one, if the random one matched with the previous then return a another map. And then you can get the next map's random one's name. Link to comment
~DarkRacer~ Posted March 27, 2013 Author Share Posted March 27, 2013 You can make your own random map system, like:Looping trough 9 maps or something at the beginning from the match then pick a random one, if the random one matched with the previous then return a another map. And then you can get the next map's random one's name. ok but how can i loop the maps? should i use getElementsByType("MAPS") or what? Link to comment
ZL|LuCaS Posted March 27, 2013 Share Posted March 27, 2013 You can make your own random map system, like:Looping trough 9 maps or something at the beginning from the match then pick a random one, if the random one matched with the previous then return a another map. And then you can get the next map's random one's name. ok but how can i loop the maps? should i use getElementsByType("MAPS") or what? example, than you can use clientside g_NextMap = "unknown" function update_client_infos(Nextmap) g_NextMap = Nextmap end addEvent("update_client_infos", true) addEventHandler("update_client_infos", getRootElement(), update_client_infos) serverside function getNextMap() if (g_ForcedNextMap) then return getMapName( g_ForcedNextMap ) else return "Random" end end function sendInfoToClient() local Nextmap = getNextMap() players = getElementsByType("player") for index,value in ipairs(players) do triggerClientEvent(value, "update_client_infos", value, nextmap) end end setTimer(sendInfoToClient, 3000, 0) 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