Jump to content
  • 0

Next map


Daeron

Question

Posted

How can i put it like , next map doesn't start till everyone is dead ...

right now when there are 2 players , 1 dies , next map starts , but how can i put it like next map wont start till the 2nd player is dead too?

Recommended Posts

  • 0
Posted

ok, create a file in the mapcycler folder and call it script.lua and add this to it:

addEventHandler("onPlayerWasted",root,function() 
    if(getAlivePlayers()==1)then 
        triggerEvent("onRoundFinished",resourceRoot) 
    end 
end) 

My in-game name: Jaysds1

Retired CMG Scripter

World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode

Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/

 

sE5Qm.png

TiV3C.png

img.php?id=0&text=Lua%20Scripter

  • 0
Posted

next map start when 1 player is alive and still driving -.-

i want to put it like next map doesnt start till every player is dead

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