Jump to content

Search the Community

Showing results for tags 'variation ping'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 1 result

  1. xRGamingx

    Ping

    Hello friends I have a ping system, But I want to know something-- Problem:::: The problem is that only the ping that I have at the moment detects me And I want to see the variation of my ping.. And what I want is to have the variation of my ping in the text thanks local screenW, screenH = guiGetScreenSize() -- you don't have to get the screen size inside the render function local disappearTime = 10 -- seconds --local ping = getPlayerPing(source) local ping = getPlayerPing(getLocalPlayer()) function ping2() if ping then dxDrawText("Weapons disabled Ping+ 600 ("..ping..")", screenW * 0.0492, screenH * 0.9453, screenW * 0.2281, screenH * 0.9714, tocolor(254, 53, 53, 254), 1.00, "default-bold", "center", "top", false, false, false, false, false) end end function handlePing2Render(state) -- if you want the timer solution then just delete the --[[ and the ]] at the end and delete the code above removeEventHandler("onClientRender",getRootElement(),ping2) -- add this so there won't be errors in debugscript about event is being already handled addEventHandler("onClientRender",getRootElement(),ping2) setTimer(function() removeEventHandler("onClientRender",getRootElement(),ping2) end, disappearTime*1000, 1) end addEvent("ping1", true) addEventHandler("ping1", root, handlePing2Render)
×
×
  • Create New...