laserlaser Posted November 18, 2010 Posted November 18, 2010 Hello,i'm write a new resource.This name is Countdown!! The Codes : countDown=0 countDownSecond=0 function countDownX() local display --for k,v in ipairs(getElementsByType("player")) do --textDisplayAddObserver ( display, getRootElement() ) --end --[[if tonumber(countDownSecond)>=1 then local text = textCreateTextItem ( tostring(countDownSecond), 0.5, 0.5, "low", 255, 0, 0, 0, 1.0 ) textDisplayAddText ( display, text ) setTimer ( textDisplayRemoveText, 500, 1, display, text ) countDownSecond=countDownSecond-1 else local text = textCreateTextItem ( "GO GO GO!!", 0.5, 0.5, "low", 255, 0, 0, 0, 1.0 ) textDisplayAddText ( display, text ) setTimer ( textDisplayRemoveText, 500, 1, display, text ) countDown=0 countDownSecond=0 end]] if tonumber(countDownSecond) ~=0 then for k,v in ipairs( getElementsByType("player") ) do display = textCreateDisplay() -- create a text display textDisplayAddObserver ( display, v ) -- make it visible to a player myTextItem = textCreateTextItem ( tostring(countDownSecond), 0.5, 0.5,"medium",255,255,255,150,6.0 ) -- create a text item for the display textDisplayAddText ( display, myTextItem ) setTimer ( textDisplayRemoveText, 500, 1, display, myTextItem ) end countDownSecond=countDownSecond-1 else for k,v in ipairs( getElementsByType("player") ) do display = textCreateDisplay() -- create a text display textDisplayAddObserver ( display, v ) -- make it visible to a player myTextItem = textCreateTextItem ( "GO! GO! GO!", 0.2, 0.5,"medium",0,255,0,130,7.3 ) -- create a text item for the display textDisplayAddText ( display, myTextItem ) setTimer ( textDisplayRemoveText, 1000, 1, display, myTextItem ) countDownSecond=0 countDown=0 end end --[[if countDownSecond ~= 0 then outputChatBox(countDownSecond,getRootElement(),255,0,0,true) countDownSecond=countDownSecond-1 else outputChatBox("GO GO GO!!",getRootElement(),0,255,0,true) countDownSecond=0 countDown=0 end]] end function cmdCountDown(player,cmd,countRecord) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Admin")) then if countDown==1 then outputChatBox("Zaten bir sayım işlemi sürüyor...",player,255,0,0,true) else if tonumber(countRecord) > 10 or tonumber(countRecord)<1 then outputChatBox("Record süresi 10 ve 1 arasında olmalıdır...",player,255,0,0,true) else setTimer(countDownX,1000,countRecord+1) countDown=1 countDownSecond=countRecord end end end end addCommandHandler("countdown",cmdCountDown) The commands use admins /countdown record ( 1-10) -- Made in TURKEY! War Of Empire LUA TEAM
dzek (varez) Posted November 18, 2010 Posted November 18, 2010 zip your resource and send to community.multitheftauto.com topic moved to Resources subforum Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
laserlaser Posted November 18, 2010 Author Posted November 18, 2010 zip your resource and send to community.multitheftauto.comtopic moved to Resources subforum How to community send?
dzek (varez) Posted November 18, 2010 Posted November 18, 2010 https://community.multitheftauto.com/index.php?p= ... s&s=upload you need account, create one here: https://community.multitheftauto.com/index.php?p=register Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
drake989 Posted November 19, 2010 Posted November 19, 2010 stealed from paradise roleplay by mabako same script i see Multi Theft Auto 1.1 Rollerblades + Park = 90% completed Skateboarding anims = 29% completed Horse model + ride anim = 79% completed Gods Of War gamemode = 67% completed Multi Theft Auto 1.0.4 Gods Of War maps = 88% completed WOW gamemode = 30% completed
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