ALSFA7 Posted April 25, 2012 Share Posted April 25, 2012 تسسيف العيال عسساكم طيبين حبيت اسال عن الكود الي تكتبه واذا خش اللاعب يطلع عنده هذا outputChatBox بس الي محومن تسبدي اذا غيرت في ذولي 255, 0, 0 ) يطلع اللون ابيض عججزت احطه ملون وش الحل ياعيال Link to comment
top sniper Posted April 26, 2012 Share Posted April 26, 2012 تقدر تلون النص مثلأأ outputChatBox ( "#FF0000Hello #00FF00World", getRootElement(), 255, 255, 255, true ) النتيجة راح تكون Hello World وهذا موقع فيه جدول لاكواد الالوان http://www.arabxoops.com/modules/colorcodes/ Link to comment
TAPL Posted April 26, 2012 Share Posted April 26, 2012 المشكلة عندك يا السفاح client هو أنك حاط لاعب و أنت تستخدم الوظيفة يعني مثلاً كذا outputChatBox("Test",getRootElement(),255,0,0) أو outputChatBox("Test",source,255,0,0) بينما الصحيح هو كذا outputChatBox("Test",255,0,0) Link to comment
ALSFA7 Posted April 26, 2012 Author Share Posted April 26, 2012 يعطيك الف عافيه اخ تابل عندي كود ابيك تشوف وش الخطا الي فيه بس addEventHandler("onClientResourceStart",resourceRoot, function() GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(310,251,680,382,"",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(10,20,661,353,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Information",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(18,32,91,25,"Serial:",false,GUIEditor_Tab[1]) GUIEditor_Label[2] = guiCreateLabel(53,32,260,20,"".. getPlayerSerial ( ) .."",false,GUIEditor_Tab[1]) GUIEditor_Label[3] = guiCreateLabel(16,77,54,26,"Ip:",false,GUIEditor_Tab[1]) GUIEditor_Label[4] = guiCreateLabel(43,34,5,5,"".. getPlayerIP ( ) .."",false,GUIEditor_Tab[3]) GUIEditor_Label[6] = guiCreateLabel(13,113,74,20,"Name:",false,GUIEditor_Tab[1]) GUIEditor_Label[7] = guiCreateLabel(51,113,168,21,"".. getPlayerName ( ) .."",false,GUIEditor_Tab[1]) GUIEditor_Label[8] = guiCreateLabel(16,151,73,21,"Ping:",false,GUIEditor_Tab[1]) GUIEditor_Label[9] = guiCreateLabel(44,151,71,22,"".. getPlayerPing ( ) .."",false,GUIEditor_Tab[1]) GUIEditor_Label[10] = guiCreateLabel(15,193,166,31,"Server Name :",false,GUIEditor_Tab[1]) GUIEditor_Label[11] = guiCreateLabel(94,193,558,26,"".. getServerName ( ) .."",false,GUIEditor_Tab[1]) end ) function open() if (guiGetVisible(GUIEditor_Window[1]) == true) then guiSetVisible(GUIEditor_Window[1], false) showCursor(false) else guiSetVisible(GUIEditor_Window[1], true) showCursor(true) end end bindKey("F10","down",open) Link to comment
TAPL Posted April 26, 2012 Share Posted April 26, 2012 المشكلة أنك حاط وظائف حقت سيرفر في كلينت لازم تسوي تريقر أو تستخدم داتا طبعاً المشكلة في ذول getPlayerIP getServerName وكمان هنا عندك أخطاء مو حاط لاعب getPlayerName() getPlayerPing() GUIEditor_Tab[1] بدلاً من GUIEditor_Tab[3] وكمان عندك خطأ في مكان ليبل الآي بي أضافة إلى أنك حاط و أيضاً تحتاج لتحديث البنق + أسم اللاعب لما يتغير ...الخ Client Side GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(310,251,680,382,"",false) guiSetVisible(GUIEditor_Window[1], false) GUIEditor_TabPanel[1] = guiCreateTabPanel(10,20,661,353,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Information",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(18,32,91,25,"Serial:",false,GUIEditor_Tab[1]) GUIEditor_Label[2] = guiCreateLabel(53,32,260,20,getPlayerSerial(),false,GUIEditor_Tab[1]) GUIEditor_Label[3] = guiCreateLabel(16,77,54,26,"Ip:",false,GUIEditor_Tab[1]) GUIEditor_Label[4] = guiCreateLabel(37,77,500,500,getElementData(localPlayer,"IP"),false,GUIEditor_Tab[1]) GUIEditor_Label[6] = guiCreateLabel(13,113,74,20,"Name:",false,GUIEditor_Tab[1]) GUIEditor_Label[7] = guiCreateLabel(51,113,168,21,getPlayerName(localPlayer),false,GUIEditor_Tab[1]) GUIEditor_Label[8] = guiCreateLabel(16,151,73,21,"Ping:",false,GUIEditor_Tab[1]) GUIEditor_Label[9] = guiCreateLabel(47,151,71,22,getPlayerPing(localPlayer),false,GUIEditor_Tab[1]) GUIEditor_Label[10] = guiCreateLabel(15,193,166,31,"Server Name :",false,GUIEditor_Tab[1]) GUIEditor_Label[11] = guiCreateLabel(94,193,558,26,getElementData(localPlayer,"ServerName"),false,GUIEditor_Tab[1]) setTimer(function() guiSetText(GUIEditor_Label[9],getPlayerPing(localPlayer)) end,1000,0) bindKey("F10","down",function() guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) guiSetText(GUIEditor_Label[7],getPlayerName(localPlayer)) end) Server Side addEventHandler("onPlayerJoin",root, function() setElementData(source,"IP",getPlayerIP(source)) setElementData(source,"ServerName",getServerName()) end) addEventHandler("onResourceStart",resourceRoot, function() for i,player in ipairs (getElementsByType("player")) do setElementData(player,"IP",getPlayerIP(player)) setElementData(player,"ServerName",getServerName()) end end) Link to comment
ALSFA7 Posted April 26, 2012 Author Share Posted April 26, 2012 يعطيك الف عافيه بس الاي بي ماطلع ! Link to comment
TAPL Posted April 27, 2012 Share Posted April 27, 2012 يعطيك الف عافيهبس الاي بي ماطلع ! لازم تضيف المود بقروب أدمن 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