xShocKz Posted January 25, 2012 Share Posted January 25, 2012 okay, oggi cercavo nella wiki lo script per settare il timer a 3 minuti quando un player prende l'hunter, ma non ho trovato un gran chè, ecco cosa dice la wiki https://wiki.multitheftauto.com/wiki/SetTimer , a questo vorrei aggiungere un hunter allert e magari un qualcosa che cambia il time. Link to comment
HunT Posted January 26, 2012 Share Posted January 26, 2012 Shok non ho avuto tempo per farlo ma vorrei delle info. 1. dove hai visto questa script? 2. nel server dove hai visto questa scritta c'era il random map o il vote manager? se cè il random map e molto semplice farlo,basta settare il comando /random a 3 minuti. se invece cè il vote manager e totalmente diverso. Fammi sapere Link to comment
xShocKz Posted January 26, 2012 Author Share Posted January 26, 2012 quando tutti i player rimasti avevano hunter, il time si settava automaticamente a 3 o più minuti, l'ho visto in parecchi server. Link to comment
HunT Posted January 28, 2012 Share Posted January 28, 2012 Prima di tutto non ti e chiaro il setTimer. Il setTimer non server per settare il tempo di una partita,ma serve per settare il tempo ad una funzione. Ad esempio vuoi far partire una funzione dopo 3 secondi allora "setTimer"nome funzione"3000"0/1" 3000 = 3 secondi 0/1 = loop funzione 0 = niente loop 1 = la funzione gira sempre Per fare questa script dell hunter time hai bisogno di ben altro. Prima di tutto nella script che ti ho dato server-side devi chiamare la funzione "updateTime" tramite trigger . ovvero questa : function updateTime() local tick = getTickCount() local msPassed = tick - g_StartTick if not isPlayerFinished(g_Me) then guiSetText(g_GUI.timepassed, msToTimeStr(msPassed)) end local timeLeft = g_Duration - msPassed guiSetText(g_GUI.timeleft, msToTimeStr(timeLeft > 0 and timeLeft or 0)) if g_HurryDuration and g_GUI.hurry == nil and timeLeft <= g_HurryDuration then startHurry() end end Dopo di che devi settare il comando /random con il setTimer. in piu devi fare la funzione client side dxText o dxImage. Credo di crearla anche io questa script,se attendi che la faccio oppure ora hai tutte le info. Link to comment
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