Jump to content

طلب كود بسيط


Recommended Posts

تفضل

  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        Name = guiCreateButton(243, 298, 114, 23, "Name", false) 
        guiSetProperty(Name, "NormalTextColour", "FFAAAAAA")     
    end 
) 
  
  
addEventHandler("onClientGUIClick",root, 
function ( ) 
if ( getElementType ( source ) == "gui-button" ) then 
local TheTime = getRealTime ( ) 
setElementData ( source , "TimeClicked" , {TheTime["hour"],TheTime["minute"],TheTime["second"]} ) 
end 
end 
) 
  
addCommandHandler("gcb", function ( ) 
local Data = getElementData ( Name , "TimeClicked" ) 
if ( Data ) then  
outputChatBox(Data[1]..":"..Data[2]..":"..Data[3]) 
end 
end 
) 
  
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...