Jump to content

Astreuz

Members
  • Posts

    2
  • Joined

  • Last visited

Astreuz's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. Hello,i have problem with nick hide if i play in DM map.In debugscript write problem in line 63 in utill_client.lua. Here is code on hide nick in my car and other players.Here is utill_client.lua GUI: |38|function showHUD(show) for i,name in ipairs({ 'ammo', 'area_name', 'armour', 'breath', 'clock', 'health', 'money', 'vehicle_name', 'weapon' }) do showPlayerHudComponent(name, show) end end function showGUIComponents(...) for i,name in ipairs({...}) do if g_dxGUI[name] then g_dxGUI[name]:visible(true) elseif type(g_GUI[name]) == 'table' then g_GUI[name]:show() else guiSetVisible(g_GUI[name], true) end end end function hideGUIComponents(...) for i,name in ipairs({...}) do if g_dxGUI[name] then g_dxGUI[name]:visible(false) elseif type(g_GUI[name]) == 'table' then g_GUI[name]:hide() else guiSetVisible(g_GUI[name], false) end end end function setGUIComponentsVisible(settings) for name,visible in pairs(settings) do if type(g_GUI[name]) == 'table' then g_GUI[name][visible and 'show' or 'hide'](g_GUI[name]) else guiSetVisible(g_GUI[name], visible) end end end function createShadowedLabel(x, y, width, height, text, align) local shadow = guiCreateLabel(x + 1, y + 1, width, height, " ", false) guiLabelSetColor(shadow, 0, 0, 0) local label = guiCreateLabel(x, y, width, height, text, false) guiLabelSetColor(label, 255, 255, 255) if align then guiLabelSetHorizontalAlign(shadow, align) guiLabelSetHorizontalAlign(label, align) end return label, shadow end function msToTimeStr(ms) if not ms then return '' end local centiseconds = tostring(math.floor(math.fmod(ms, 1000)/10)) if #centiseconds == 1 then centiseconds = '0' .. centiseconds end local s = math.floor(ms / 1000) local seconds = tostring(math.fmod(s, 60)) if #seconds == 1 then seconds = '0' .. seconds end local minutes = tostring(math.floor(s / 60)) return minutes .. ':' .. seconds .. ':' .. centiseconds end function getTickTimeStr() return msToTimeStr(getTickCount()) end function resAdjust(num) if not g_ScreenWidth then g_ScreenWidth, g_ScreenHeight = guiGetScreenSize() end if g_ScreenWidth < 1280 then return math.floor(num*g_ScreenWidth/1280) else return num end |120|end Script no hide nick players into play map.What's wrong in this?Sorry for my bad english,i still learning this language
  2. I have problem with map rating (build on gamemode race) In chat write: This map has no rate.Write 0-10/10 to rate this map! And i write and i no see nothing,still be write this map no rate... Code: addEvent("onMapStarting",true) addEventHandler("onMapStarting",getRootElement(), function (mapInfo) local map = exports.mapmanager:getRunningGamemodeMap() local mapname = getResourceName(map) local rate = exports.mapratings:getMapRating(mapname) if rate then local average = rate.average local players = rate.count setTimer(outputChatBox,1200,1,"#40A0E0Average rating of this map: "..getRatingColorAsHex(average)..tostring(average).."/10 #40A0E0(#ffffff"..tostring(players).." #40A0E0votes)",getRootElement(),255,255,255,true) else setTimer(outputChatBox,1200,1,"#40A0E0This map wasn't rated yet. Type #ffffff/rate #abcdef0-10 #40A0E0to rate this map",getRootElement(),255,255,255,true) end end ) function getRatingColor(rating) local r, g = -5.1*(rating^2) + 25.5*rating + 255, -5.1*(rating^2) + 76.5*rating r, g = r > 255 and 255 or math.floor(r+0.5), g > 255 and 255 or math.floor(g+0.5) return {r,g,0}--"#"..string.format("%02X", r)..string.format("%02X", g).."00" end function getRatingColorAsHex(rating) local r, g = unpack(getRatingColor(rating)) return "#"..string.format("%02X", r)..string.format("%02X", g).."00" end Sorry for my bad english.
×
×
  • Create New...