Jump to content

ابي اكواد ~


Recommended Posts

server :

  
function sendmaininfo (source) 
    triggerClientEvent ( source, "gtype", getRootElement(), getGameType()) 
 end 
  

client :

  
  
function gtypeHandler ( message ) 
     guiCreateLabel(0.50, 0.33, 0.96, 0.22, "Game Mode: "..message, true, tabserver)  
 end 
addEvent("gtype", true) 
addEventHandler("gtype", getRootElement(), gtypeHandler)     
  
  

client 2 :

  
  
    statsmain = guiCreateWindow ( 200, 200, 500, 500, "userpanel", false ) 
        maintab = guiCreateTabPanel ( 0, 0.06, 1, 1, true, statsmain ) 
    tabserver= guiCreateTab( "stats ", maintab ) 
  

كذا ولا فيه اخطاء ؟ :shock:

Link to comment

--Client Side--

triggerServerEvent("updateInfo",localPlayer) 
  
statsmain = guiCreateWindow(200,200,500,500,"userpanel",false) 
maintab = guiCreateTabPanel(0,0.06,1,1,true,statsmain) 
tabserver= guiCreateTab("stats ",maintab) 
ModeLable = guiCreateLabel(0.50,0.33,0.96,0.22,"",true,tabserver)  
  
function info(message) 
guiSetText(ModeLable,"Game Mode: "..message) 
end 
addEvent("gtype",true) 
addEventHandler("gtype",root,info) 

--Server Side--

function sendmaininfo() 
    triggerClientEvent(source,"gtype",source,getGameType()) 
 end 
addEvent("updateInfo",true) 
addEventHandler("updateInfo",root, sendmaininfo) 

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