Jump to content

ممكن مساعدة


abozhrh

Recommended Posts

انا جالس اصمم شوب

وحطيت info

لكن عندي مشكلة في ip ,team ,ping

اضفت هذا للـ تيم

    theTeam = getPlayerTeam( source ) 
    if theTeam then 
        teamName = getTeamName(theTeam) 
    else 
        teamName = "N/A" 
    end 
    yourteam = guiCreateLabel(0.02,0.88,0.94,0.92,"yourTeam :"..tostring(teamName),true,tab1) 
    guiLabelSetColor (yourteam,0,255,0,220) 
    guiSetFont(yourteam,"default-bold-small") 

وما زبط

ونفس المشكلة في

ip , ping

ياليت احد يساعدني

الفزعه.....

Link to comment
ip1 = guiCreateLabel(0.02,0.62,0.94,0.92,"your ip : ",true,tab1) 
     guiLabelSetColor (ip1,255,255,0,220) 
     guiSetFont(ip1,"default-bold-small") 
  
 ping1 = guiCreateLabel(0.02,0.55,0.94,0.92,"your ping : "..tostring(getPlayerPing(localPlayer)),true,tab1) 
     guiLabelSetColor (ping1,255,255,0,220) 
     guiSetFont(ping1,"default-bold-small") 
  
 theSerial = getPlayerSerial( thePlayer ) 
 serial1 = guiCreateLabel(0.02,0.68,0.94,0.92,"your serial : "..tostring(getPlayerSerial()),true,tab1) 
     guiLabelSetColor (serial1,255,255,0,220) 
     guiSetFont(serial1,"default-bold-small")   
         name1 = guiCreateLabel(0.02,0.82,0.94,0.92," username : ",true,tab1) 
     guiLabelSetColor (name1,0,255,0,220) 
     guiSetFont(name1,"default-bold-small") 
--Team 
     theTeam = getPlayerTeam( localPlayer ) 
     if theTeam then 
         teamName = getTeamName(theTeam) 
     else 
         teamName = "N/A" 
      end 
 yourteam = guiCreateLabel(0.02,0.88,0.94,0.92,"yourTeam :"..tostring(teamName),true,tab1) 
guiLabelSetColor (yourteam,0,255,0,220) 
guiSetFont(yourteam,"default-bold-small") 

جربها ورد

Link to comment
Finally you get me, is ok, I know it's hard as I was a newbie before ;).

Now, back on topic.

-- client side:

ip1 = guiCreateLabel(0.02,0.62,0.94,0.92,"your ip : ",true,tab1) 
      guiLabelSetColor (ip1,255,255,0,220) 
      guiSetFont(ip1,"default-bold-small") 
  
  ping1 = guiCreateLabel(0.02,0.55,0.94,0.92,"your ping : "..tostring(getPlayerPing(localPlayer)),true,tab1) 
      guiLabelSetColor (ping1,255,255,0,220) 
      guiSetFont(ping1,"default-bold-small") 
  
  theSerial = getPlayerSerial( thePlayer ) 
  serial1 = guiCreateLabel(0.02,0.68,0.94,0.92,"your serial : "..tostring(getPlayerSerial()),true,tab1) 
      guiLabelSetColor (serial1,255,255,0,220) 
      guiSetFont(serial1,"default-bold-small")   
          name1 = guiCreateLabel(0.02,0.82,0.94,0.92," username : ",true,tab1) 
      guiLabelSetColor (name1,0,255,0,220) 
      guiSetFont(name1,"default-bold-small") 
  
      theTeam = getPlayerTeam( localPlayer ) 
      if theTeam then 
          teamName = getTeamName(theTeam) 
      else 
          teamName = "N/A" 
       end 
 yourteam = guiCreateLabel(0.02,0.88,0.94,0.92,"yourTeam :"..tostring(teamName),true,tab1) 
 guiLabelSetColor (yourteam,0,255,0,220) 
 guiSetFont(yourteam,"default-bold-small") 
  
triggerServerEvent("getIP", getLocalPlayer()) 
  
addEvent("returnIP",true) 
addEventHandler("returnIP",root, 
function (IP) 
   guiSetText(ip1, "your ip: ".. tostring(IP)) 
end) 

-- server side:

addEvent("getIP",true) 
addEventHandler("getIP",root, 
function () 
    triggerClientEvent(source,"returnIP",source,getPlayerIP(source)) 
end) 

This has to work.

NOTICE: You must add this resource to the acl.xml, "Admin" group.

جرب هذا وشف التيم شغال ولا لا

ولا تنسى تضيفه في قروب الادمن

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