-
Posts
1,830 -
Joined
-
Last visited
Everything posted by Me[Z]oO
-
كودي شتغل وش تسوي انت الحين ض1 ؟ هو يبي يغير التايم للعنصر الي ضغط
-
Client GUIEditor = { button = {}, window = {}, label = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(247, 202, 299, 272, "Time", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(9, 24, 108, 39, "Edit Time", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(121, 32, 85, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(211, 32, 73, 25, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(11, 228, 271, 26, "Created By KilleR | v.1.5", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) GUIEditor.button[2] = guiCreateButton(195, 0, 74, 22, "×", false, GUIEditor.label[1]) GUIEditor.label[2] = guiCreateLabel(27, 102, 237, 61, "طـــــــــــــــــآرهــــــــــــــــ", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 96, 254, 0) end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then local hours = guiGetText ( GUIEditor.edit[1] ) local mins = guiGetText ( GUIEditor.edit[2] ) setTime ( tonumber ( hours ),tonumber ( mins ) ) elseif ( source == GUIEditor.button[2] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) end end ) addEvent ( "OpenWindow", true ) addEventHandler ( "OpenWindow", root, function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) Server local Groups = { "Level 4", "Level 5", "Level 6", "Head.Admin", "Console", } addCommandHandler ( "TimeEdit", function ( p ) for _,Server in ipairs ( Groups ) do if ( isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(p)),aclGetGroup( "Server" ) ) ) then triggerClientEvent ( p, "OpenWindow", p ) end end end )
-
خربطت وش فيها ؟ كتبته عالسريع مشان اساعد الرجال فقط -_-"
-
بالنسبة لـ Mr.R شكرا عالتنبيه <3 بس function( p ) عادي انا لسة مجربها الحين تقدر تسوي كذا كمان function( p ) المسافات ذي ممنوعة بالسترنق بالنسبة لـ ارقمنتات الست تايم خربطت بيها شوي المهم لو تلاحظ بكودي في not يعني رح يغير القيمة الي العكس فـ بالتالي رح يقفلها و الماوس رح ينحط علي حسب وجود اللوحة ام لا واللوحة رح تنقفل وبالتالي رح ينقفل الماوس انا مجربه شكرا لك بالتوفيق لك <3 هههههههههههههههههههههههههههههههههههههههه وانت مسوي فيها سوليد سنيك ؟ ا triggerClientEvent لايفنت كلنت حاطط به isObjectInACLGroup خرابيط المهم لا تتكلم افهم الاول ولو مسوي ناصح بطل تسوي 14 موضوع به طلبات تافهه مثلك
-
Client GUIEditor = { label = {}, button = {}, edit = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(247, 202, 299, 272, "Time", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(9, 24, 108, 39, "Edit Time", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(121, 32, 85, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[4] = guiCreateEdit(211, 32, 73, 25, "", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(11, 228, 271, 26, "Created By KilleR | v.1.5", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 255, 0, 0) GUIEditor.button[2] = guiCreateButton(195, 0, 74, 22, "×", false, GUIEditor.label[4]) GUIEditor.label[5] = guiCreateLabel(27, 102, 237, 61, "طـــــــــــــــــآرهــــــــــــــــ", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 96, 254, 0) addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then mins = guiGetText(GUIEditor.edit[2]) hour = guiGetText(GUIEditor.edit[4]) setTime(tonumber(hour),tonumber(mins)) elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end end) addEvent("OpenGUI",true) addEventHandler("OpenGUI",root, function() guiSetVisible(GUIEditor.window[1],false) showCursor(false) end) Server addCommandHandler("Edit Time",function(p) Group = { "Level 4", "Level 5", "Level 6", "Head Admin", "Console", } for _,MeZoO in ipairs ( Group ) do if ( isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(p)),aclGetGroup( tostring(MeZoO)))) then triggerClientEvent(p,"OpenGUI",p) end end end) =)
-
قبل م ابدأ برمجة تبي الوقت يتغير لكل اللاعبين ولا للاعب الي ضغط
-
addCommandHandler("afk",function(source) if getElementData(source,"afk",true) then local name = getPlayerName(source) outputChatBox("[AFK]The Player ["..name.."] Was Back#!",root,0,255,0) removeElementData(source,"afk") else local name = getPlayerName(source) setElementData(source,"afk") outputChatBox("[AFK]The Player ["..name.."] Was AFK!!",root,255,0,0) end end) addEventHandler("onMapLoad",root,function() setTimer(function() if getElementData(source,"afk") == true then killPed(source) end,20000,1) end end) addCommandHandler("hl", function(p) if getElementData(p,"afk") then outputChatBox("لديك الداتا",p) else outputChatBox("ليس لديك الداتا",p) end end) جرب
-
--Server addCommandHandler("HowMany", function(p) if getElementData(p,"Gold") == 3 then outputChatBox("ذهبك 3 " ,p) end end)
-
addCommandHandler("afk",function(source) if getElementData(source,"afk",true) then local name = getPlayerName(source) outputChatBox("[AFK]The Player ["..name.."] Was Back#!",root,0,255,0) removeElementData(source,"afk") else local name = getPlayerName(source) setElementData(source,"afk") outputChatBox("[AFK]The Player ["..name.."] Was AFK!!",root,255,0,0) end end) addEventHandler("onMapLoad",root,function() setTimer(function() if getElementData(source,"afk") == true then killPlayer(source) end,20000,1) end end) addCommandHandler("hl", function(p) if getElementData(p,"afk") then outputChatBox("لديك الداتا",p) else outputChatBox("ليس لديك الداتا",p) end end) جرب
-
كيف م يشتغل تاكد من ان الداتا معك
-
بسم الله نبدأ الشرح --Client addEventHandler("onClientGUIClick",root,function() if source == button then setElementData(localPlayer, "Gold", getElementData(localPlayer, "Gold") + 10) end end) -- الحين يعطيني 10 ذهب طيب لو طلعت ودخلت الذهب يروح نسوي اكونت داتا نحفظها --Server addEventHandler('onPlayerQuit',root, function ( ) local vAcc = getPlayerAccount(source) if not vAcc or isGuestAccount (vAcc) then return end setAccountData(vAcc,'Gold',getElementData(source,"Gold")) end ) addEventHandler('onPlayerLogin',root, function(_,acc) local v_Data = getAccountData(acc,'Gold') if ( v_Data ) then setElementData(source, "Gold",getAccountData(acc,'Gold')) end end ) -- هنا سوينا حفظ للذهب انشاء الله تفهم بالنسبة لكيف تعرف عدد ذهبك howmany = getElementData(localPlayer,"Gold") dxDrawText(howmany, -- باقي الارقمنتات ) -- هنا تحذف اول ارقمنت الي هو سترنق الكلام وتحط بداله howmany اتمني اكود افدتك
-
addEventHandler("onMapLoad",root,function() if getElementData(source,"afk") == true then killPlayer(source) end end)
-
شكراً لك لكن ما يشتغل addCommandHandler("hl", function(p) if getElementData(p,"afk") then outputChatBox("لديك الداتا",p) else outputChatBox("ليس لديك الداتا",p) end end) حط ذا الكود كلنت واكتب hl وشوف وش يظهر وقول لي
-
addEventHandler("onMapLoad",root,function() if getElementData(source,"afk") then killPlayer(source) end end)
-
-
شكرا لك العفو حياك الله
-
outputChatBox("#ffffff[Room] "..gamemodeMapName.." started ".. name ..".",root,255,0,0,true)
-
ابحث عن حدث onMapLoad وارسل الكود حقه