Jump to content

Reflex#

Members
  • Posts

    230
  • Joined

  • Last visited

Everything posted by Reflex#

  1. First : show your lua code in tagSecond : You must to show all script..to look on all script. May be problem in another part
  2. Hehe...delta,delta...hi It's me. WTF//Reflex#
  3. hm...okay..but how can I use it for some1 group? just use aclGetGroup?
  4. I have a question.. How I can make rainbow color of car? I mean it must changing in rainbow or another combination for Race mode. Or how to make it for only 1 team. Sample : DONATORS team
  5. Wow...you awesome TwiX As always I wanted to make it by myself but you helped me more..I'll learn this script and I'll try to modify it THX
  6. I understand,but I want to ask,what functions I want to use for another part of script
  7. What functions I must to use for this script : Sample in outputChatbox : [TESTING RESULTS] Map : mapName(what currently playing now) ACCEPTED(DECLINED) [TESTING RESULTS] want to make it on command /accepted or /declined like result of testing maps. hope you understand.
  8. ty now I wanna just ask..How to make text "[RADIO]" color and "Radio swithched on/off" not same?
  9. Thanks for help,but have another problem,look : I changed deleted addComandHandler and add bindkey..but when I press R,radio don't off/on local musicStream = "http://www.181.fm/winamp.pls?station=181-power&style=mp3&description=Power%20181%20(Top%2040)&file=181-power.pls" function onResourceStart ( ) sound = playSound ( musicStream, true ) end function makeRadioStayOff ( ) setRadioChannel ( 0 ) cancelEvent ( ) end function toggleSong ( ) removeEventHandler ( "onClientRender", root, renderText ) if ( isTimer ( hideTimer ) ) then killTimer ( hideTimer ) end if not songOff then setSoundVolume ( sound, 0 ) songOff = true removeEventHandler ( "onClientPlayerRadioSwitch", root, makeRadioStayOff ) addEventHandler ( "onClientRender", root, renderText ) hideTimer = setTimer ( function ( ) removeEventHandler ( "onClientRender", root, renderText ) end ,5000, 1 ) else setSoundVolume ( sound, 1 ) songOff = false setRadioChannel ( 0 ) addEventHandler ( "onClientPlayerRadioSwitch", root, makeRadioStayOff ) addEventHandler ( "onClientRender", root, renderText ) hideTimer = setTimer ( function ( ) removeEventHandler ( "onClientRender", root, renderText ) end ,5000, 1 ) end end function renderText ( ) dxDrawText ( "[RADIO] Radio is switched ".. ( songOff and "off" or "on" ), 230, 100, 400, 300, tocolor ( 255, 91, 3, 255 ), 2, "default-bold" ) end addEventHandler ( "onClientResourceStart", resourceRoot, onResourceStart ) addEventHandler ( "onClientPlayerRadioSwitch", root, makeRadioStayOff ) addEventHandler ( "onClientPlayerVehicleEnter", root, makeRadioStayOff ) bindKey("r","down","music")
  10. Thank's solid And if I want to change time,I must change this? ,5000, 1
  11. ty,script is work..but how I can make..when I ON radio,text showing and then hiding? same with OFF
  12. Ok,when I will come home,I'll try it. But thx in helping.
  13. So what is the problem,guys?
  14. I uploaded this script from mtasa resources,and just added in it dxDrawText function and changed stream..
  15. i know that I must'nt avoid it) but...what the problem of script? I just must delete this event?
  16. I added ')' in the end,but it' didn't work too... addEventHandler(onClientRender,root) I think I dont need this line in script..
  17. ??? one scripter who helped me wih dxDrawText,said that dxDrawText is client-side,and I must to add this event
  18. I think this is not a reason,why it dont work.
  19. local musicStream = "http://www.181.fm/winamp.pls?station=181-power&style=mp3&description=Power%20181%20(Top%2040)&file=181-power.pls" function onResourceStart() sound = playSound( musicStream, true) end function makeRadioStayOff() setRadioChannel(0) cancelEvent() end function toggleSong() if not songOff then setSoundVolume(sound,0) songOff = true removeEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) dxDrawText("[RADIO] Radio is switched on",0,0,5,5,tocolor(0,0,0,255),1,"default-bold") else setSoundVolume(sound,1) songOff = false setRadioChannel(0) addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) dxDrawText("[RADIO] Radio is switched off",0,0,5,5,tocolor(0,0,0,255),1,"default-bold") end end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) addEventHandler("onClientPlayerRadioSwitch",getRootElement(),makeRadioStayOff) addEventHandler("onClientPlayerVehicleEnter",getRootElement(),makeRadioStayOff) addEventHandler("onClientRender",root, addCommandHandler("radio",toggleSong) I found this script on community mtasa,edited it some,now I add dxDrawText..but it's dont work.. No errors in debugscript.. Please help any1 if you can
  20. New mapper DubSn0w with his pretty cool v1 want to show it to us. This map called : DubSn0w v.1 - Polarized This map is really nice,I enjoying to driving and it have pretty nice deco. This map must Herobrine record,but he didn't record it in 3 days,and DubSn0w decided to make video by himself. So here it is: Bye all Have a nice day
  21. DAMN,just find standart ACL.xml script and all maan
  22. 1)not want copy ffs userpanel 2)Maybe will be add sorry.forgot that ffs userpanel have it
  23. Idk..may be add.. 1)Category of maps..but i think its not so easy..mb..New Maps...most buyed maps(Hot maps) and etc 2)Slipped my mind Edit: 2)Add buttons like: DM FUN DD,it will be same like categories..
  24. [lua] 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 ( ) dxDrawImage ( screenWidth/2 - 503.0, 4.0, 574.0, 20.0, 'join.png', angle, 0, -120 ) 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 ) I add in 28 line.. i forgot dxdrawImage func
×
×
  • Create New...