GetServerAveragePing: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

3 September 2025

  • curprev 00:3100:31, 3 September 2025O22 talk contribs 1,140 bytes +47 No edit summary
  • curprev 00:3100:31, 3 September 2025O22 talk contribs 1,093 bytes +1,093 Created page with "{{Useful Function}} __NOTOC__ This function gets average players ping. ==Syntax== <syntaxhighlight lang="lua">int getAveragePing( )</syntaxhighlight> ===Returns=== Returns the average players ping as integer. <br> Returns '''0''' if no players are online. ==Code== <section name="Shared" class="both" show="true"> <syntaxhighlight lang="lua"> function getAveragePing() local players = getElementsByType("player") if #players == 0 then return 0 end..."