[YARDIM] Fps Ping

0 Üye ve 1 Ziyaretçi konuyu incelemekte.

Çevrimdışı HouseKeeping

  • Yeni Üye
  • *
    • İleti: 11
: 28 Ekim 2019, 21:15:06
Merhaba fps ping var fakat oyuncu sayısı yok nasıl ekliyebilirim

Kod
[code]local x,y = guiGetScreenSize()
local iFPS = 0
local iFrames = 0
local iStartTick = getTickCount()
   
function GetFPS()
return iFPS
end
   
addEventHandler( "onClientRender", root,function()
iFrames = iFrames + 1
if getTickCount() - iStartTick >= 1000 then
iFPS = iFrames
iFrames = 0
iStartTick = getTickCount()
end
dxDrawText("FPS: "..GetFPS().." | Ping: "..getPlayerPing(getLocalPlayer()).." |  ",0.60*x,0.987*y,0.937*x,0.16*y,tocolor(255,255,255,130),1.0,"default","right","top",false,false,true)
end)
[/code]
« Son Düzenleme: 31 Aralık 2020, 14:45:21 Gönderen: Narkoz »
 


MTASATURK

[YARDIM] Fps Ping
« : 28 Ekim 2019, 21:15:06 »

Çevrimdışı ertrldtcu

  • Uzman Üye
  • *
    • İleti: 589
Yanıtla #1 : 28 Ekim 2019, 23:22:15
Yazının konumunu biraz düzenlemen gerekebilir..
Kod
local x,y 				= guiGetScreenSize()
local iFPS = 0
local iFrames = 0
local iStartTick = getTickCount()
 
addEventHandler( "onClientRender", root,function()
local now = getTickCount()
iFrames = iFrames + 1
if now - iStartTick >= 1000 then
iFPS = iFrames
iFrames = 0
iStartTick = now
end
dxDrawText("FPS: "..iFPS.." | Ping: "..getPlayerPing(getLocalPlayer()).." |  Oyuncu sayısı: "..#getElementsByType("player"),0.60*x,0.987*y,0.937*x,0.16*y,tocolor(255,255,255,130),1.0,"default","right","top",false,false,true)
end)
system
 


Çevrimdışı HouseKeeping

  • Yeni Üye
  • *
    • İleti: 11
Yanıtla #2 : 02 Kasım 2019, 13:14:34
Teşşekürler