Jump to content

bubble

Members
  • Posts

    2
  • Joined

  • Last visited

bubble's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. Hi, How can I configure my server so that a Race continues after one of the vehicles has been destroyed? How are you supposed to play this game-mode if a script restart is triggered every time this happens? This behavior is caused by the Script integrity test: race_client.lua: ------------------------ -- Script integrity test setTimer( function () if g_Vehicle and not isElement(g_Vehicle) then outputChatBox( "Race integrity test fail (client): Your vehicle has been destroyed. Please panic." ) end end, 1000,0 ) race_server.lua: ------------------------ -- Script integrity test g_IntegrityFailCount = 0 TimerManager.createTimerFor("raceresource","integrity"):setTimer( function () local fail = false -- Make sure all vehicles are valid - Invalid vehicles really mess up the race script for player,vehicle in pairs(g_Vehicles) do if not isElement(vehicle) then fail = true outputRace( "Race integrity test fail: Invalid vehicle for player " .. tostring(getPlayerName(player)) ) kickPlayer( player, nil, "Connection terminated to protect the core" ) end end -- Increment or reset fail counter g_IntegrityFailCount = fail and g_IntegrityFailCount + 1 or 0 -- Two fails in a row triggers a script restart if g_IntegrityFailCount > 1 then outputRace( "Race script integrity compromised - Restarting" ) exports.mapmanager:changeGamemode( getResourceFromName('race') ) end end, 1000,0 ) I must be missing someting, thanks in advance for your help
×
×
  • Create New...