Jump to content

Script capture the flag ( CTF mod )


TuQa

Recommended Posts

Hey, I came here because I need someone to help me make a scrip.

In mode ctf each round has a length of 10 minutes, but after 10 min go to other round and other round and other round...... and not change map.

My question is how i make a script that when they have finished two rounds (20 minutes) automatically switch to another map?

Any one help my plz?

Thanks :oops:

Link to comment

Make u own gamemode with missionTimer

https://wiki.multitheftauto.com/index.ph ... ssiontimer

  
g_MissionTimer = exports.missiontimer:createMissionTimer (g_TimeLimit,true,"%m:%s",0.5,20,true,"default-bold",1,255,255,255) 
addEventHandler ( "onMissionTimerElapsed", g_MissionTimer, onTimeElapsed ) -- on finish the time start function onTimeElapsed 
  
--example 
  
function onTimeElapsed () 
    destroyElement(g_MissionTimer) -- destroy current missionTimer 
    --Here the function 
end 
  

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