Jump to content

TwiX!

Members
  • Posts

    905
  • Joined

  • Last visited

Everything posted by TwiX!

  1. https://community.multitheftauto.com/index.php?p= ... ls&id=5109 not riginal author
  2. lol? skotinka style = bugs not bugged
  3. you can trigger from racevoting_server.lua to race_client.lua find there g_NextMap (if you use this modification of race)
  4. and download over999 files for use txd?
  5. TwiX!

    Team script

    Jaysds1 your code will working only when resource start if player got racepickup his color will changed use this: function onSetTeamColorToCar(thePlayer) -- start our function if isPedInVehicle (thePlayer) then --player have vehicle? local hisTeam = getPlayerTeam(thePlayer) -- get player team if (hisTeam) then -- if player have team then local r,g,b = getTeamColor(hisTeam) -- get colors local hisVehicle = getPedOccupiedVehicle(thePlayer) --get player vehicle setVehicleColor(hisVehicle,tonumber(r),tonumber(g),tonumber(b)) -- set colors else -- if player not have team then local r,g,b = math.random(255),math.random(255),math.random(255) -- make random colors local hisVehicle = getPedOccupiedVehicle(thePlayer) -- get player vehicle setVehicleColor(hisVehicle,r,g,b) -- set random colors | or you can set here only white color (255,255,255) end end end end function onWaitingForLaggers() --Delay it a bit to allow players to warp in their vehicle setTimer(onSetTeamColorToCar,2000,1,source) -- our timer end addEventHandler("onNotifyPlayerReady",getRootElement(),onWaitingForLaggers) -- when player is ready, set team color addEventHandler("onPlayerPickUpRacePickup",getRootElement(),onSetTeamColorToCar) -- do set colors when player got pickup addEventHandler("onPlayerReachCheckpoint",getRootElement(),onSetTeamColorToCar) -- do set colors when player got checkpoint
  6. как только, так сразу ;D
  7. смотрел смотрел..
  8. была баганной ей же и останется)
  9. nope, when map starting you can use onPlayerVehicleEnter or onPlayerPickUpRacePickup
  10. open map fold - meta.xml - there "loclkedtime" change on true weather - number
  11. https://community.multitheftauto.com/index.php?p= ... ls&id=5089 again joker
  12. put the code here and move topic (mods)
  13. sW,sH = guiGetScreenSize() waitingLines = { "#FFFFFFWaiting For Laggers", "#89490fW#FFFFFFaiting For Laggers.", "#89490fW#914f0ea#FFFFFFiting For Laggers..", "#89490fW#914f0ea#95500di#FFFFFFting For Laggers...", "#89490fW#914f0ea#95500di#98530dt#FFFFFFing For Laggers", "#89490fW#914f0ea#95500di#98530dt#9d570ci#FFFFFFng For Laggers.", "#89490fW#914f0ea#95500di#98530dt#9d570ci#a45a0bn#FFFFFFg For Laggers..", "#89490fW#914f0ea#95500di#98530dt#9d570ci#a45a0bn#ad600bg#FFFFFF For Laggers...", "#89490fW#914f0ea#95500di#98530dt#9d570ci#a45a0bn#ad600bg#ba6908 F#FFFFFFor Laggers", "#89490fW#914f0ea#95500di#98530dt#9d570ci#a45a0bn#ad600bg#ba6908 F#c46f08o#FFFFFFr Laggers.", "#89490fW#914f0ea#95500di#98530dt#9d570ci#a45a0bn#ad600bg#ba6908 F#c46f08o#ca7407r#FFFFFF Laggers..", "#89490fW#914f0ea#95500di#98530dt#9d570ci#a45a0bn#ad600bg#ba6908 F#c46f08o#ca7407r#d87d05 L#...", "#89490fW#914f0ea#95500di#98530dt#9d570ci#a45a0bn#ad600bg#ba6908 F#c46f08o#ca7407r#d87d05 L#e08204a#FFFFFFggers", "#89490fW#914f0ea#95500di#98530dt#9d570ci#a45a0bn#ad600bg#ba6908 F#c46f08o#ca7407r#d87d05 L#e08204a#e88603g#FFFFFFgers.", "#89490fW#914f0ea#95500di#98530dt#9d570ci#a45a0bn#ad600bg#ba6908 F#c46f08o#ca7407r#d87d05 L#e08204a#e88603g#f68f01g#FFFFFFers..", "#89490fW#914f0ea#95500di#98530dt#9d570ci#a45a0bn#ad600bg#ba6908 F#c46f08o#ca7407r#d87d05 L#e08204a#e88603g#f68f01g#fa9300e#FFFFFFrs...", "#89490fW#914f0ea#95500di#98530dt#9d570ci#a45a0bn#ad600bg#ba6908 F#c46f08o#ca7407r#d87d05 L#e08204a#e88603g#f68f01g#fa9300e#ff9600r#FFFFFFs", "#89490fW#914f0ea#95500di#98530dt#9d570ci#a45a0bn#ad600bg#ba6908 F#c46f08o#ca7407r#d87d05 L#e08204a#e88603g#f68f01g#fa9300e#ff9600r#ff9c00s#FFFFFF.", "#FFFFFFW#914f0ea#95500di#98530dt#9d570ci#a45a0bn#ad600bg#ba6908 F#c46f08o#ca7407r#d87d05 L#e08204a#e88603g#f68f01g#fa9300e#ff9600r#ff9c00s#FFFFFF..", "#FFFFFFWa#95500di#98530dt#9d570ci#a45a0bn#ad600bg#ba6908 F#c46f08o#ca7407r#d87d05 L#e08204a#e88603g#f68f01g#fa9300e#ff9600r#ff9c00s#FFFFFF...", "#FFFFFFWai#98530dt#9d570ci#a45a0bn#ad600bg#ba6908 F#c46f08o#ca7407r#d87d05 L#e08204a#e88603g#f68f01g#fa9300e#ff9600r#ff9c00s#FFFFFF", "#FFFFFFWait#9d570ci#a45a0bn#ad600bg#ba6908 F#c46f08o#ca7407r#d87d05 L#e08204a#e88603g#f68f01g#fa9300e#ff9600r#ff9c00s#FFFFFF.", "#FFFFFFWaiti#a45a0bn#ad600bg#ba6908 F#c46f08o#ca7407r#d87d05 L#e08204a#e88603g#f68f01g#fa9300e#ff9600r#ff9c00s#FFFFFF..", "#FFFFFFWaitin#ad600bg#ba6908 F#c46f08o#ca7407r#d87d05 L#e08204a#e88603g#f68f01g#fa9300e#ff9600r#ff9c00s#FFFFFF...", "#FFFFFFWaiting#ba6908 F#c46f08o#ca7407r#d87d05 L#e08204a#e88603g#f68f01g#fa9300e#ff9600r#ff9c00s#FFFFFF", "#FFFFFFWaiting F#c46f08o#ca7407r#d87d05 L#e08204a#e88603g#f68f01g#fa9300e#ff9600r#ff9c00s#FFFFFF.", "#FFFFFFWaiting Fo#ca7407r#d87d05 L#e08204a#e88603g#f68f01g#fa9300e#ff9600r#ff9c00s#FFFFFF..", "#FFFFFFWaiting For#d87d05 L#e08204a#e88603g#f68f01g#fa9300e#ff9600r#ff9c00s#FFFFFF...", "#FFFFFFWaiting For L#e08204a#e88603g#f68f01g#fa9300e#ff9600r#ff9c00s#FFFFFF", "#FFFFFFWaiting For La#e88603g#f68f01g#fa9300e#ff9600r#ff9c00s#FFFFFF.", "#FFFFFFWaiting For Lag#f68f01g#fa9300e#ff9600r#ff9c00s#FFFFFF..", "#FFFFFFWaiting For Lagg#fa9300e#ff9600r#ff9c00s#FFFFFF...", "#FFFFFFWaiting For Lagge#ff9600r#ff9c00s#FFFFFF", "#FFFFFFWaiting For Lagger#ff9c00s#FFFFFF.", "#FFFFFFWaiting For Laggers..", "#FFFFFFWaiting For Laggers..." } waitNum = 0 showNext = true function updateWatingText() if showNext then showNext = false waitNum = waitNum + 1 else showNext = true end if waitNum > 36 then waitNum = 1 removeEventHandler("onClientRender", getRootElement(), updateWatingText) showWaiting = false end if showWaiting then dxDrawColorText ( waitingLines[waitNum], sW/2,sH/2,sW,sH, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown" ) else dxDrawColorText ( ' ', sW/2,sH/2,sW,sH, tocolor ( 0, 0, 0, 255 ), 1.02, "default-bold" ) end end function dxDrawColorText(str, ax, ay, bx, by, color, scale, font,alignX,alignY,clip, wordBreak, postGUI) if not str then return false end str = " "..str ax= ax - dxGetTextWidth(" ", scale, font) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font,alignX,alignY,clip, wordBreak, postGUI) ax = ax + w color = tocolor(tonumber("0x"..string.sub(col, 1, 2)), tonumber("0x"..string.sub(col, 3, 4)), tonumber("0x"..string.sub(col, 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,alignX,alignY,clip, wordBreak, postGUI) end end addEvent("updateWaiting",true) addEventHandler("updateWaiting",getRootElement(), function() showWaiting = true addEventHandler("onClientRender", getRootElement(), updateWatingText) end ) triggerClientEvent ( "updateWaiting", getRootElement() )
  14. already got this problem i have not ideas how make it for vBulletin..
  15. /debugscript 3 in chat wont check all code
  16. кинь ип в личку или добавь в скайпе, помогу чем смогу если что, или как тестер P.S а то делать пока-что нечего, работы нет
  17. TwiX!

    Some objects ID

    1 - 3475 2 - 987 3 - 980
  18. function dxDrawColorText(str, ax, ay, bx, by, color, scale, font,alignX,alignY,clip, wordBreak, postGUI) if not str then return false end str = " "..str ax= ax - dxGetTextWidth(" ", scale, font) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font,alignX,alignY,clip, wordBreak, postGUI) ax = ax + w color = tocolor(tonumber("0x"..string.sub(col, 1, 2)), tonumber("0x"..string.sub(col, 3, 4)), tonumber("0x"..string.sub(col, 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,alignX,alignY,clip, wordBreak, postGUI) end end you need edit dxDrawColorText
  19. amazing resource will good for rp/g servers ;d and others
  20. TwiX!

    [REL] Cameratool

    with output in file/script will be nice ;D
  21. save in xml file or sql/mysql. then get this data and use for auto login
×
×
  • Create New...