shaynendra Posted April 14, 2015 Share Posted April 14, 2015 Okay, I have a Server Roleplay and I along with my friends are planning to develop a script Turf War originally created by Manve, After we developed, one of my colleagues said that there should be additional 10min Countdown to take Rather certain areas we have set in the game, he said Countdown is based DxDrawText and lasted 10min after one team entering the Colshape. I only ask for help how to make the Countdown. Thank you The Screenshot about Turf War Countdown : I Hope you can help me and Sorry for my english Link to comment
roddydennvor Posted April 16, 2015 Share Posted April 16, 2015 Gampang lah ,,, Mau dibantu ? suruh aja si Ezza chat ke Gw ,,, Arthur alvaro ,,, owner Crusher gaming roleplay :v :v Link to comment
roddydennvor Posted April 16, 2015 Share Posted April 16, 2015 MTA itu itungan waktunya pakai Milisecond , 1 menit = 60000 milisecond ,, jadi kalau itu settingan 10 menit , 10x60000 = 600000 , cari aja itu angka , terus diubah deh Link to comment
HunT Posted April 16, 2015 Share Posted April 16, 2015 https://wiki.multitheftauto.com/index.ph ... ssiontimer Easy and Fast Link to comment
shaynendra Posted April 17, 2015 Author Share Posted April 17, 2015 Hunt, I don't know how to use Missiontimer Can you explain how to use that? Link to comment
Olle Risk Posted April 18, 2015 Share Posted April 18, 2015 I don't know if your friends also is asking around about this, but I helped someone with an almost identical issue here a few days ago, here's my reply. If time is provided in total seconds you can divide it by 60 and use math.floor to get the amount of minutes. Then you subtract the minutes multiplied by 60 from the total seconds to get the seconds (like a clock showing minutes and seconds) if that's what you want. local total_time = 135; local minutes = math.floor(total_time/60); local seconds = total_time-(minutes*60); outputChatBox("Time left is: "..minutes.." minutes and "..seconds.." seconds!"); -- Above code will output: "Time left is: 2 minutes and 15 seconds" I'm a little confused right now, what code are you using for your turf system so far? getTickCount() is a useful function for mission timers too. 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