Jump to content

iSpark

Members
  • Posts

    24
  • Joined

  • Last visited

Everything posted by iSpark

  1. Search in Community.mtasa.com
  2. iSpark

    Help Textlib

    I have a Win text color With dxDrawText for Be Colored i need edit textlib
  3. iSpark

    Help Textlib

    dxDrawText(self.strText, l + shadowDist, t + shadowDist, r + shadowDist, b + shadowDist, tocolor(att2, att3, att4, att5), self.fScale, self.strFont, self.bHorizontalAlign, self.bVerticalAlign, self.bClip, self.bWordWrap, self.bPostGUI,true ) end dxDrawText ( self.strText, l, t, r, b, tocolor(unpack(self.tColor)), self.fScale, self.strFont, self.bHorizontalAlign, self.bVerticalAlign, self.bClip, self.bWordWrap, self.bPostGUI,true ) break end end end ) I change dxDrawText colorcode to true .. Something wrong ? Heelp plz
  4. iSpark

    [HELP] !!

    I wont test win text color
  5. iSpark

    [HELP] !!

    triggerClientEvent ( "fuck_all_RaMi^!", getRootElement(), activePlayers[1] ) end addCommandHandler("testwin", function(pla) triggerClientEvent ( "fuck_all_RaMi^!", getRootElement(), pla ) end) What wrong
  6. iSpark

    Help Font.

    I fix the meta.xml but the font.tff not fixed in Client.
  7. iSpark

    Help Font.

    The font not work.
  8. iSpark

    Help Font.

    srfont = dxCreateFont("font.ttf",13) g_GuiLabel = { } function GuiShow() if g_Settings.Visible then g_GuiLabel.Speed:visible(true) g_GuiLabel.Unit:visible(true) end end addEventHandler("onClientScreenFadedIn", root, GuiShow) function GuiHide() g_GuiLabel.Speed:visible(false) g_GuiLabel.Unit:visible(false) end addEventHandler("onClientScreenFadedOut", root, GuiHide) function GuiInitialize() local screenWidth, screenHeight = guiGetScreenSize() g_GuiLabel.Speed = dxText:create("0", screenWidth-72, screenHeight - 36, false, "srfont", 2, "right") g_GuiLabel.Speed:type("stroke", 3, 0, 0, 0, 255) g_GuiLabel.Speed:color(0,170,255,255) g_GuiLabel.Unit = dxText:create("", screenWidth-64, screenHeight - 28, false, "srfont", 1, "left") g_GuiLabel.Unit:type("stroke", 2, 0, 0, 0, 255) g_GuiLabel.Unit:color(255,255,255,255) GuiHide() end GuiInitialize() Not Work im trying to Change the font but not work.
  9. local screen_width, screen_height = guiGetScreenSize() local RESPAWN_KEY = "space" local showRespawn = false dxDrawText = "#FF5500Press #808080"..RESPAWN_KEY.." #FF5500to respawn" dxDrawRectangle ( x/3.8, y/3.8, x/2.02, y/2, tocolor ( 0, 0, 0, 150 ) local scale = 1.5 local font = "arial" local textWidth = dxGetTextWidth(text:gsub("#%x%x%x%x%x%x", ""), scale, font) local fontHeight = dxGetFontHeight(scale, font) local color = tocolor(255, 128, 0, 255) setElementData(getLocalPlayer(), "respawn.playing", false, true) local running = false local vehicleData = {} local SAVE_INTER = 22500 local saveTimer = nil local reset = true -- reset timer local lastSaved = 0
  10. I try but The Code not work
  11. Hey how can i add a dxDrawRectangle To that Text Lua local screen_width, screen_height = guiGetScreenSize() local RESPAWN_KEY = "space" local showRespawn = false local text = "#FF5500Press #808080"..RESPAWN_KEY.." #FF5500to respawn" local scale = 1.5 local font = "arial" local textWidth = dxGetTextWidth(text:gsub("#%x%x%x%x%x%x", ""), scale, font) local fontHeight = dxGetFontHeight(scale, font) local color = tocolor(255, 128, 0, 255) setElementData(getLocalPlayer(), "respawn.playing", false, true) local running = false local vehicleData = {} local SAVE_INTER = 22500 local saveTimer = nil local reset = true -- reset timer local lastSaved = 0 Thank's
  12. iSpark

    Help plz

    I just Change F7 to U ..
  13. iSpark

    Help plz

    function guiToggleVisible ( ) if not PanelOpened then PanelOpened = 1 if guiGetVisible ( Panel ) == true then addEventHandler ( "onClientRender", gRoot, HideWindow) showCursor ( false ) guiSetInputEnabled ( false ) if UserDataChanged then saveUserData() end UserDataChanged = nil else refreshPanelData(getLocalPlayer()) guiSetVisible ( Panel, true ) guiSetVisible ( PanelImage, true ) addEventHandler ( "onClientRender", gRoot, ShowWindow) guiGridListClear ( PlayersListGUI ) for id, playeritem in ipairs(getElementsByType("player")) do if playeritem == getLocalPlayer() then else local row = guiGridListAddRow ( PlayersListGUI ) guiGridListSetItemText ( PlayersListGUI, row, playerListColumnGUI, string.gsub(getPlayerName ( playeritem ),"#%x%x%x%x%x%x",""), false, false ) end end end end end EDIT
  14. iSpark

    Help plz

    Help plz I have a userpanel i change the bind F7 to U ... So When i press U it's open But when i won't to close i can't close it .. bindKey("u","down",guiToggleVisible) callServerFunction("ClientStarted",getLocalPlayer()) addEventHandler ( "onClientGUIClick", gRoot, Buttons )
  15. iSpark

    Need help

    What Mean Event What Can do ? Event = Function ?
  16. iSpark

    Help plzzz

    Ye, I have that Problem too
×
×
  • Create New...