-
Posts
230 -
Joined
-
Last visited
Everything posted by Reflex#
-
no errors..this script without images..i wanna ask how to add it
-
I have my joinquit script and i wanna add the image left from text How can i make it? I forgot.. function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, left, top, clip, wordbreak, postGUI) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font ) ax = ax + w color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end last = e + 1 s, e, cap, col = str:find( pat, last ) end if last <= #str then cap = str:sub( last ) local w = dxGetTextWidth( cap, scale, font ) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font, left, top, clip, wordbreak, postGUI ) end end local messageJoin = "" local messageQuit = "" function renderPlayerJoined ( ) dxDrawColorText("Server: ".. messageJoin,504.0,4.0,574.0,20.0,tocolor(255,255,255,255),0.7,"sans","left","top",false,false,false) end function renderPlayerLeft ( ) dxDrawColorText("Server: ".. messageQuit,503.0,16.0,573.0,32.0,tocolor(255,255,255,255),0.7,"sans","left","top",false,false,false) end addEventHandler('onClientPlayerJoin', root, function() messageJoin = getPlayerName(source) .. " #ffffffhas joined the game" addEventHandler ( "onClientRender", root, renderPlayerJoined ) setTimer ( function ( ) removeEventHandler ( "onClientRender", root, renderPlayerJoined ) end ,6000,1 ) end ) addEventHandler('onClientPlayerQuit', root, function(reason) messageQuit = getPlayerName(source) .. " #ffffffhas left the game [" .. reason .. "]" addEventHandler ( "onClientRender", root, renderPlayerLeft ) setTimer ( function ( ) removeEventHandler ( "onClientRender", root, renderPlayerLeft ) end ,6000,1 ) end )
-
http://www.gforums.ru/index.php?/topic/ ... s-id-list/ russian forum with all id's of objects and columns
-
ye guys all work thanks to Solid and Anerl
-
Hey all. I want to create dxDrawtText join. But I think that..what I make is not true.. Help me guys g_Root = getRootElement() addEventHandler('onPlayerJoin',g_Root, function () dxDrawText(Server : ' .. getPlayerName(source) .. ' has joined the game ,3,0,10,10,tocolor(0,0,0,200),0.3,"default") end )
-
Hey guys. Today I wanna present you my first map what I called No Fire. Its not so cool like Drake's or Siddy's maps but I'm trying hard. I will learn better mapping skills.. My v2 will be more cool,it will be after this summer. Watch in 720p for better quality. Don't forget to subscribe my channel. Enjoy watching Your Reflex :3
-
Look,its easy,i show you part of time script,what help me to do,Dracula First you must know that,this is only client function. But i dont show all script addEventHandler("onClientRender",root, function() dxDrawText([TEXT],0,0,10,10,tocolor(255,157,0,255),0.6,"bankgothic") end ) The first is position of text 0=x,0=y. Then goes color (255,157,0,255)(Red,Green,Blue,Aplha) alpha must be 255 always,if it 0,text dont show. Then 0.6,its size of text And "bankgothic" is type of text,it can be Arial,Tahoma and else I think my post is not so useful,because Solid was faster and show Wiki url,but...i just show,like you ask.
-
Hey guys. I want to present you map by No1se This is his 3-rd map,in some time i will upload v1 and v2 in better quality,sorry for bad edit. This is my first editing of video,I will study in it and make v1 and v2 better and better Look and enjoy! Your Reflex# :3
-
I think your acl.xml file is broke. I have this problem some months ago. Change it to standart.
-
Idk may be i do smth wrong but money dont give when player die or win. P.S:All players have accounts already and I add it in Admin group: resource:pro-userpanel
-
My friend give it to me and say that this script dont work.I try to fix it..but as you see...not good I think he do this. idk
-
right,when music enabled it write in chat,but when disabled,write nothing
-
Dont work debugscript: ERROR: script.lua : 6 :attempt to call global 'checkForExternalSounds(a nil value)' ERROR: script.lua :11:bad argument #1 to 'ipairs'(table expected,got nil)
-
All work thx i forgot But when map music disabled in chatbox dont write message,but when enable,all work
-
function muteMapMusic() if not mapMusicMute then mapMusicMute = true checkForExternalSounds() outputChatBox("#ff9d00[OFF]#FFFFFFMap music is now #FF0000disabled#FFFFFF, press M to enable it.",255,255,255,true) else mapMusicMute = false outputChatBox("#ff9d00[ON]#FFFFFFMap music is now #00FF00enabled#FFFFFF, press M to disable it.",255,255,255,true) for i,k in ipairs(pausedExternalSounds) do if isElement(k) then setSoundPaused(k,false) end end checkForExternalSounds() end end bindKey("m","down",muteMapMusic) WARNING:Bad argument @'bindKey'
-
Can you show me? I never try with dX functions and Gui
-
I wanna create on the server color time like.. 14:15:23 and with font what i want..how i can do this?