Jump to content

gokalpfirat

Members
  • Posts

    314
  • Joined

  • Last visited

Everything posted by gokalpfirat

  1. Waiting for a good answer
  2. Karthik It doesnt works(works but it doesnt in my x and y)
  3. Yes but i want it to same in every resolution.
  4. local sw,sh = guiGetScreenSize() guiCreateStaticImage( sw-203, sh-678, sw-1216, sh-618, "logo.png", false) function DXtext () dxDrawText(tostring "Hello",sw-241,sh-558,sw-634,sh-2,tocolor(148,0,220),1.5,"beckett") end addEventHandler ( "onClientRender", getRootElement(), DXtext ) In this script when I open this script In another resolution logo and text changes their position.
  5. I dont use gui move i use getSetAlpha
  6. I add client_anim.lua to meta and in directory.
  7. I get this error ERROR: bos/client.lua:2: attemp to index global 'Animation'(a nil value) in this script: addEventHandler( "onClientResourceStart", getRootElement( ), Animation.createAndPlay(guiCreateStaticImage(20, 200, 100, 100, "bos.png", false) , { from = 0, to = 1, time = 2000, fn = guiSetAlpha }) )
  8. I want to make sliding text but how? Are there any function that makes text sliding?
  9. No one knows the functions that can on/off txd
  10. Which i must use for a txd toggle script?
  11. Not working but not getting same error.
  12. Hi i added race_nos2 c_settings file function consoleSetNosFiringStyle() if (g_Settings.ControlStyle = "normal") then g_Settings.ControlStyle = "nfs" elseif (g_Settings.ControlStyle = "nfs") then g_Settings.ControlStyle = "hybrid" elseif (g_Settings.ControlStyle = "hybrid") then g_Settings.ControlStyle = "normal" if saveSettingsToFile() then outputGuiPopup("Your NOS control style has been set to '" .. tostring(settingName) .. "'") end end end addCommandHandler("noscontrol", consoleSetNosFiringStyle) addCommandHandler("nos", consoleSetNosFiringStyle) But it doesnt works. It must do when i say /nos change my nos to another nos style. Ps: I get error at line 80 ')' expected near '='
  13. Works perfectly Thank You!
  14. It works now but it starts at 59 Minutes and 59 second and goes backward.
  15. No i say please fix it sorry for my old "fix it" posts
  16. I try but i cant thats because i write this topic.
  17. I get error at line 16(SDK) Error is: invalid option '%' to 'format'
  18. Now i dont get error but i cant see my online time at scoreboard function joinTime ( ) setElementData ( source, "joinTime", getTickCount() ) setElementData (source, "joinS", 0 ) setElementData (source, "joinM", 0 ) setElementData (source, "joinH", 0 ) setElementData (source, "joinD", 0 ) setElementData (source, "Online Time", nil ) end addEventHandler ( "onPlayerJoin", getRootElement(), joinTime ) function onResourceStart(res) call(getResourceFromName("scoreboard"), "addScoreboardColumn", "Online Time") end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),onResourceStart) function control(source) endTime = getElementData(source,"joinTime") - getTickCount() if (endTime == 1000) then setElementData (source, "joinS", tonumber(getElementData(source,"joinS"))+1 ) setElementData ( source, "joinTime", getTickCount()-1000 ) end if (getElementData(source,"joinS") == 60) then setElementData (source, "joinM", tonumber(getElementData(source,"joinM"))+1 ) setElementData ( source, "joinS", tonumber(getElementData(source,"joinS"))-60 ) end if (getElementData(source,"joinM") == 60) then setElementData (source, "joinH", tonumber(getElementData(source,"joinH"))+1 ) setElementData ( source, "joinM", tonumber(getElementData(source,"joinM"))-60 ) end if (getElementData(source,"joinH") == 24) then setElementData (source, "joinD", tonumber(getElementData(source,"joinD"))+1 ) setElementData ( source, "joinH", tonumber(getElementData(source,"joinH"))-24 ) end end function check(source) Second = getElementData(source,"joinS") Minute = getElementData(source,"joinM") Hour = getElementData(source,"joinH") Day = getElementData(source,"joinD") if (Second >= 1) then setElementData(source,"Online Time",Second.."second") elseif (Minute >= 1) then setElementData(source,"Online Time",Minute.."minute"..Second.."second") elseif (Hour >= 1) then setElementData(source,"Online Time",Hour.."Hour"..Minute.."minute"..Second.."second") elseif (Day >= 1) then setElementData(source,"Online Time",Day.."Day"..Hour.."Hour"..Minute.."minute"..Second.."second") end end function all() for index , player in ipairs ( getElementsByType ( "player" ) ) do control(player) check(player) end end setTimer(all,1000,0)
×
×
  • Create New...