~DarkRacer~ Posted March 5, 2013 Posted March 5, 2013 in the race mode: i want to make that when the "last survival" message comes up Do Not Start New Vote Map until the last player dies. does anyone know where are the files that need to edit on and what functions should i use to stop this, thx.
Anony# Posted March 5, 2013 Posted March 5, 2013 destructionderby.lua if getActivePlayerCount() <= 0 then admin>resources>race>settings>random maps>false Team, MTA Scripters.
~DarkRacer~ Posted March 5, 2013 Author Posted March 5, 2013 it was : if getActivePlayerCount() <= 1 then i changed it to: if getActivePlayerCount() <= 0 then but didn't work
Castillo Posted March 5, 2013 Posted March 5, 2013 What do you mean by that? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Anony# Posted March 5, 2013 Posted March 5, 2013 function DestructionDerby:onPlayerWasted(player) if isActivePlayer(player) then self:handleFinishActivePlayer(player) if getActivePlayerCount() <= 0 then RaceMode.endMap() else TimerManager.createTimerFor("map",player):setTimer(clientCall, 2000, 1, player, 'Spectate.start', 'auto') end end RaceMode.setPlayerIsFinished(player) showBlipsAttachedTo(player, false) end function DestructionDerby:onPlayerQuit(player) if isActivePlayer(player) then self:handleFinishActivePlayer(player) if getActivePlayerCount() <= 0 then RaceMode.endMap() end end end Team, MTA Scripters.
~DarkRacer~ Posted March 5, 2013 Author Posted March 5, 2013 anony# i can't edit the file it keep telling me that u have to refresh it. and everything goes back as it was.
PaiN^ Posted March 5, 2013 Posted March 5, 2013 Shut down your server first, Then edit it ... " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
~DarkRacer~ Posted March 5, 2013 Author Posted March 5, 2013 Ok. but i will do it later cause there is a lot of players now.
Anony# Posted March 5, 2013 Posted March 5, 2013 that madness, does not need the "restart" now just edit it Team, MTA Scripters.
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