Jump to content

طلب كود اظهار عدد لاعبين في لابل


momar5600

Recommended Posts

طيب شوف اه هو خطا

wndow129 = guiCreateLabel(121, 258, 101, 35, "", false, wndwo1)
guiSetFont(wndow129, FontLabel )
function refreshStats()
if guiGetVisible(wndwo1) then
   guiSetText(wndow129,"Players : ".. getPlayerCount() .."")
    end
end
addEventHandler("onClientRender", getRootElement(), refreshStats)

Link to comment
local playerCount = #getElementsByType("player")
wndow129 = guiCreateLabel(121, 258, 101, 35,playerCount , false, wndwo1)
guiSetFont(wndow129, FontLabel )
guiLabelSetHorizontalAlign(wndow129, "center", false)
guiLabelSetVerticalAlign(wndow129, "center")

طبعا عشان يتحدث عدد الاعبين استخدم تايمر او ريندر + guiSetText

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...