xTeacherx Posted April 5, 2012 Share Posted April 5, 2012 السلام عليكم ~ ابي اكواد client ^^ =================== Game Mode Game Map Account Admin country Link to comment
TAPL Posted April 5, 2012 Share Posted April 5, 2012 https://wiki.multitheftauto.com/wiki/GetGameType https://wiki.multitheftauto.com/wiki/GetMapName https://wiki.multitheftauto.com/wiki/GetPlayerAccount https://wiki.multitheftauto.com/wiki/GetAccountName local Country = call(getResourceFromName("admin"), "getPlayerCountry", source) طبعاً كلهم سيرفر وعشان تقدر تستخدمها بالكلينت لازم تسوي تريقر أو تستخدم الدتا https://wiki.multitheftauto.com/wiki/TriggerClientEvent https://wiki.multitheftauto.com/wiki/SetElementData https://wiki.multitheftauto.com/wiki/GetElementData Link to comment
xTeacherx Posted April 5, 2012 Author Share Posted April 5, 2012 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 ) كذا ولا فيه اخطاء ؟ Link to comment
TAPL Posted April 5, 2012 Share Posted April 5, 2012 --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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now