John_Scott Posted December 14, 2013 Share Posted December 14, 2013 Hi, I have a problem with the race mod. I would like to set the GM, to never respawn the player, when he dead (fall down). When i change the respawn time in settings to 0, por false, the respawn not changed. How i can turn off the respawn in race gamemode? Thanks for help! Link to comment
denny199 Posted December 14, 2013 Share Posted December 14, 2013 In race_server, search for "timelimit" then force it everytime to set it to "none" with a variable. function cacheMapOptions(map) g_MapOptions = {} g_MapOptions.duration = map.duration and tonumber(map.duration) > 0 and map.duration*1000 or g_GameOptions.defaultduration if g_MapOptions.duration > 86400000 then g_MapOptions.duration = 86400000 end g_MapOptions.respawn = 'none' if g_MapOptions.respawn ~= 'timelimit' and g_MapOptions.respawn ~= 'none' then g_MapOptions.respawn = 'none' -- I setted it here here end g_MapOptions.respawntime = g_MapOptions.respawn == 'timelimit' and (map.respawntime and map.respawntime*1000 or g_GameOptions.defaultrespawntime) g_MapOptions.time = map.time or '12:00' g_MapOptions.weather = map.weather or 0 --etc... Link to comment
John_Scott Posted December 14, 2013 Author Share Posted December 14, 2013 Thank you very much! Link to comment
denny199 Posted December 14, 2013 Share Posted December 14, 2013 No problem, and have fun on your server! 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