Jump to content

Anti Respawn


John_Scott

Recommended Posts

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

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