Jump to content

[Help] Stats


Samking

Recommended Posts

        GUIEditor.label[1] = guiCreateLabel(33, 40, 145, 15, "Name : "..getPlayerName(localPlayer), false, GUIEditor.tab[1])
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[1], 12, 240, 60)
        GUIEditor.label[2] = guiCreateLabel(33, 69, 145, 15, "Money : "..getPlayerMoney (localplayer) , false, GUIEditor.tab[1])
        guiSetFont(GUIEditor.label[2], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[2], 12, 240, 60)
        GUIEditor.label[3] = guiCreateLabel(33, 98, 145, 15, "Health : "..getElementHealth (localPlayer), false, GUIEditor.tab[1])
        guiSetFont(GUIEditor.label[3], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[3], 12, 240, 60)
        GUIEditor.label[4] = guiCreateLabel(33, 123, 145, 15, "Ping :"..getPlayerPing (localPlayer), false, GUIEditor.tab[1])
        guiSetFont(GUIEditor.label[4], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[4], 12, 240, 60)

When I increase my money from 0 to 100 

the money was still 0 in stats

and also Health, ping.

When I upgrade the Script then Stats change by itself

How I can do like Change stats  Automatically without upgrading

Link to comment
GUIEditor.label[1] = guiCreateLabel(33, 40, 145, 15, "Name : N/A", false, GUIEditor.tab[1])
guiSetFont(GUIEditor.label[1], "default-bold-small")
guiLabelSetColor(GUIEditor.label[1], 12, 240, 60)
GUIEditor.label[2] = guiCreateLabel(33, 69, 145, 15, "Money : N/A", false, GUIEditor.tab[1])
guiSetFont(GUIEditor.label[2], "default-bold-small")
guiLabelSetColor(GUIEditor.label[2], 12, 240, 60)
GUIEditor.label[3] = guiCreateLabel(33, 98, 145, 15, "Health : N/A", false, GUIEditor.tab[1])
guiSetFont(GUIEditor.label[3], "default-bold-small")
guiLabelSetColor(GUIEditor.label[3], 12, 240, 60)
GUIEditor.label[4] = guiCreateLabel(33, 123, 145, 15, "Ping : N/A", false, GUIEditor.tab[1])
guiSetFont(GUIEditor.label[4], "default-bold-small")
guiLabelSetColor(GUIEditor.label[4], 12, 240, 60)



setTimer( function ()
	guiSetText(GUIEditor.label[1], "Name : "..getPlayerName(localPlayer))
	guiSetText(GUIEditor.label[2], "Money : "..getPlayerMoney (localPlayer) )
	guiSetText(GUIEditor.label[3], "Health : "..getElementHealth(localPlayer))
	guiSetText(GUIEditor.label[4], "Ping : "..getPlayerPing (localPlayer))


end, 1000, 0)

 

  • Thanks 1
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...