Jump to content

I have problem help me please.


Chris!i!

Recommended Posts

Hello all i have a prob with my script i want to add on it Kills,PlayTime,Money anyone can help me ?? i set these there is these 3 things i didnt did it and i dont know it if someone can tell me what are they and do it for me its a stats GUI. command /stats

function setStats ( )

if ( source == GUIEditor_Grid[1] ) then

row, col = guiGridListGetSelectedItem ( source )

if ( row and col and row ~= -1 and col ~= -1 ) then

local playername = guiGridListGetItemText ( source, row, col )

local thePlayer = getPlayerFromName ( playername )

if ( thePlayer ) then

local x, y, z = getElementPosition ( thePlayer )

local location = getZoneName ( x, y, z )

local money = getPlayerMoney( thePlayer )

local id = getElementModel( thePlayer )

local ping = getPlayerPing( thePlayer )

local dm = getElementDimension( thePlayer )

local tm1 = getPlayerTeam( thePlayer )

local tm2 = getTeamName( tm1 )

local tm2 = getTeamName( tm1 )

guiSetText ( GUIEditor_Label[1], "Nickname : ".. playername )

guiSetText ( GUIEditor_Label[2], "Location : ".. location )

guiSetText ( GUIEditor_Label[4], "Skin : ".. id )

guiSetText ( GUIEditor_Label[6], "Dimension : ".. dm )

guiSetText ( GUIEditor_Label[7], "Team : ".. tm2 )

guiSetText ( GUIEditor_Label[8], "Kills : ".. )

guiSetText ( GUIEditor_Label[9], "PlayTime : ".. )

guiSetText ( GUIEditor_Label[10], "Money : ".. money )

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...