~DarkRacer~ Posted March 26, 2013 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???
xXMADEXx Posted March 26, 2013 Posted March 26, 2013 /stop votemanager ? The Ultimate Lua Tutorial! | MTA PHP SDK
denny199 Posted March 26, 2013 Posted March 26, 2013 admin>resources>(select)race>settings>random map something like that set that to "true" Sometimes I dream about cheese
~DarkRacer~ Posted March 26, 2013 Author 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.
codeluaeveryday Posted March 26, 2013 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. Tutorials: => getOnlineAdmins() => [TUT] Better Join Country => [TUT] Updating admin countries => [TUT] Updating admin flags Server: K@N Zombies / Freeroam
ZL|LuCaS Posted March 26, 2013 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 MTA Scripters. ♥♥♥Beijinhos♥♥♥
~DarkRacer~ Posted March 26, 2013 Author 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!
ZL|LuCaS Posted March 26, 2013 Posted March 26, 2013 startMap, forcing nextmap MTA Scripters. ♥♥♥Beijinhos♥♥♥
Markeloff Posted March 26, 2013 Posted March 26, 2013 You can edit the map cycle. Some people want it to happen, some wish it would happen, others make it happen.
ZL|LuCaS Posted March 26, 2013 Posted March 26, 2013 You can edit the map cycle. That makes no sense. MTA Scripters. ♥♥♥Beijinhos♥♥♥
~DarkRacer~ Posted March 26, 2013 Author Posted March 26, 2013 You can edit the map cycle. How would i do that?? give me an example
denny199 Posted March 27, 2013 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. Sometimes I dream about cheese
~DarkRacer~ Posted March 27, 2013 Author 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?
ZL|LuCaS Posted March 27, 2013 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) MTA Scripters. ♥♥♥Beijinhos♥♥♥
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