
MR.KFO
Members-
Posts
39 -
Joined
-
Last visited
Everything posted by MR.KFO
-
اقصد هيك Table = { "Data1", "Data2", "Data3", } addEventHandler('onPlayerQuit',root, function ( ) local vAcc = getPlayerAccount(source) if not vAcc or isGuestAccount (vAcc) then return end setAccountData(vAcc,'VV',getElementData(source,"Money")) end ) addEventHandler('onPlayerLogin',root, function(_,acc) local v_Data = getAccountData(acc,'VV') if ( v_Data ) then setElementData(source, "Money",getAccountData(acc,'VV')) end end ) يحفظ الداتا الي بالجدول ذا
-
يعني يكون جدول فيه داتا DATA Genral Kfo كل دول بجدول ينحفظو
-
السلام عليكم شخباركم شباب ؟ الحين سويت بالعافية حفظ داتا addEventHandler('onPlayerQuit',root, function ( ) local vAcc = getPlayerAccount(source) if not vAcc or isGuestAccount (vAcc) then return end setAccountData(vAcc,'VV',getElementData(source,"Money")) end ) addEventHandler('onPlayerLogin',root, function(_,acc) local v_Data = getAccountData(acc,'VV') if ( v_Data ) then setElementData(source, "Money",getAccountData(acc,'VV')) end end ) وابي احفظ كذا داتا ف كيف اسوي جدول به كل الداتا وينحفظ ممكن مساعدة ؟
-
... سويته لك على شكل تايمر كل شوي يتحقق ، مع العلم الطريقة ذي ممكن تسبب لك لاق خفيف ، انصحك تسوي زي ماقلت لك فوق setTimer(function() if getElementInterior(localPlayer) == 1 and getElementDimension(localPlayer) == 0 then toggleControl ("next_weapon",false) toggleControl ("previous_weapon",false) toggleControl ("fire",false) setPedWeaponSlot (localPlayer,0) elseif getElementInterior(localPlayer) == 0 and getElementDimension(localPlayer) == 0 then toggleControl ("next_weapon",true) toggleControl ("previous_weapon",true) toggleControl ("fire",true) end end,1500,0) اوك بجرب اخي
-
السلام عليكم عندي مشكلة بلوحة الادمن انا مسوي 3 dxDrawText يعرفو من الي صك ميوت وكم المدة وووش السبب --admin-main function mute( player, action, data, additional, additional2 ) local reason = data or "" local seconds = tonumber(additional) and tonumber(additional) > 0 and tonumber(additional) mdata = reason~="" and ( "(" .. reason .. ")" ) or "" more = seconds and ( "(" .. secondsToTimeDesc(seconds) .. ")" ) or "" dxDrawText ("Mute Reason : "..reason.."", 20, 288, 205, 302, tocolor(199, 235, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText ("Mute By : "..getPlayerName(source).."", 20, 307, 205, 321, tocolor(32, 143, 180, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText ("Mute For : "..more.."", 20, 327, 205, 341, tocolor(213, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) end addEvent("kfo", true) addEventHandler("kfo", root, function () addEventHandler("onClientRender",getRootElement(),mute) end ) addEvent("kfo1", true) addEventHandler("kfo1", root, function () removeEventHandler("onClientRender",getRootElement(),mute) end ) --admin-server elseif ( action == "mute" ) then if ( isPlayerMuted ( player ) ) then action = "un"..action end if getElementData( player ,"Account") == "kfo" then exports["guimessages"]:outputServer(source, "* #BDBCB7"..getPlayerName(player).." #FF0000is the owner you cant mute him", 255, 100, 100) return end local reason = data or "" local seconds = tonumber(additional) and tonumber(additional) > 0 and tonumber(additional) mdata = reason~="" and ( "(" .. reason .. ")" ) or "" more = seconds and ( "(" .. secondsToTimeDesc(seconds) .. ")" ) or "" aSetPlayerMuted ( player, not isPlayerMuted ( player ), seconds ) if ( isPlayerMuted ( player ) ) then exports["guimessages"]:outputServer(root, "*[Admin]: "..getPlayerName(player).." Has been Muted By "..getPlayerName(source)..""..more.."", 255, 0, 0) exports["guimessages"]:outputServer(root, "#FFFFFFReason:"..reason..".", 255, 180, 0) triggerClientEvent(player, "kfo", player) playSoundFrontEnd(root, 49) else exports["guimessages"]:outputServer(root, "*#EB0B0B[Admin]: #56EB0B"..getPlayerName(player).." #EB0B0BHas been UnMuted By #FFE275"..getPlayerName(source).."!", 1, 254, 10) playSoundFrontEnd(root, 14) triggerClientEvent(player, "kfo1", player) end ما يظهر اي شي ممكن حل ؟؟
-
يجيب لي اسم اللاعب الي صكه ميوت + انت مسوي localPlayer بيجيب اسم اللاعب انا ابيه اسم الي صكه ميوت لاهنت وما يجيب السبب ومدة الميوت
-
دقيقة اخي elseif ( action == "mute" ) then if ( isPlayerMuted ( player ) ) then action = "un"..action end if getElementData( player ,"Account") == "kfo" then exports["guimessages"]:outputServer(source, "* #BDBCB7"..getPlayerName(player).." #FF0000is the owner you cant mute him", 255, 100, 100) return end local reason = data or "" local seconds = tonumber(additional) and tonumber(additional) > 0 and tonumber(additional) mdata = reason~="" and ( "(" .. reason .. ")" ) or "" more = seconds and ( "(" .. secondsToTimeDesc(seconds) .. ")" ) or "" aSetPlayerMuted ( player, not isPlayerMuted ( player ), seconds ) if ( isPlayerMuted ( player ) ) then exports["guimessages"]:outputServer(root, "*[Admin]: "..getPlayerName(player).." Has been Muted By "..getPlayerName(source)..""..more.."", 255, 0, 0) exports["guimessages"]:outputServer(root, "#FFFFFFReason:"..reason..".", 255, 180, 0) triggerClientEvent(player, "mutekfo", player) playSoundFrontEnd(root, 49) else exports["guimessages"]:outputServer(root, "*#EB0B0B[Admin]: #56EB0B"..getPlayerName(player).." #EB0B0BHas been UnMuted By #FFE275"..getPlayerName(source).."!", 1, 254, 10) playSoundFrontEnd(root, 14) triggerClientEvent(player, "mutekfo1", player) end هذا السيرفر تمام ولا triggerClientEvent(player, "mutekfo", player) triggerClientEvent(player, "mutekfo1", player)
-
aAdminForm = nil aLastCheck = 0 aCurrentVehicle = 429 aCurrentWeapon = 30 aCurrentAmmo = 100 aCurrentSlap = 200 aPlayers = {} aBans = {} aLastSync = 0 aResources = {} mmmm = "" function mute( player, action, data, additional, additional2 ) local reason = data or "" local seconds = tonumber(additional) and tonumber(additional) > 0 and tonumber(additional) mdata = reason~="" and ( "(" .. reason .. ")" ) or "" more = seconds and ( "(" .. secondsToTimeDesc(seconds) .. ")" ) or "" dxDrawText("Mute Reason : "..reason.."", 20, 288, 205, 302, tocolor(199, 235, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Mute By : "..getPlayerName(source).."", 20, 307, 205, 321, tocolor(32, 143, 180, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Mute For : "..more.."", 20, 327, 205, 341, tocolor(213, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) end addEvent("mutekfo", true) addEventHandler("mutekfo", root, function () addEventHandler("onClientRender",getRootElement(),mute) end ) addEvent(mutekfo1) addEventHandler("mutekfo1", root, function () removeEventHandler("onClientRender",getRootElement(),mute) end ) اسف تلغبطت الحين خليته دي اكس ما يظهر وهذا الدي بج 3 http://cdn.top4top.co/i_c7e22989321.png
-
السلام عليكم عندي مشكلة بلوحة الادمن انا مسوي 3 dxDrawText يعرفو من الي صك ميوت وكم المدة وووش السبب --admin-main function mute( player, action, data, additional, additional2 ) local reason = data or "" local seconds = tonumber(additional) and tonumber(additional) > 0 and tonumber(additional) mdata = reason~="" and ( "(" .. reason .. ")" ) or "" more = seconds and ( "(" .. secondsToTimeDesc(seconds) .. ")" ) or "" sa = guiCreateLabel("Mute Reason : "..reason.."", 20, 288, 205, 302, tocolor(199, 235, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) saa = guiCreateLabel("Mute By : "..getPlayerName(source).."", 20, 307, 205, 321, tocolor(32, 143, 180, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) saaa = guiCreateLabel("Mute For : "..more.."", 20, 327, 205, 341, tocolor(213, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) end addEvent("kfo", true) addEventHandler("kfo", root, function () addEventHandler("onClientRender",getRootElement(),mute) end ) addEvent("kfo1", true) addEventHandler("kfo1", root, function () removeEventHandler("onClientRender",getRootElement(),mute) end ) --admin-server elseif ( action == "mute" ) then if ( isPlayerMuted ( player ) ) then action = "un"..action end if getElementData( player ,"Account") == "kfo" then exports["guimessages"]:outputServer(source, "* #BDBCB7"..getPlayerName(player).." #FF0000is the owner you cant mute him", 255, 100, 100) return end local reason = data or "" local seconds = tonumber(additional) and tonumber(additional) > 0 and tonumber(additional) mdata = reason~="" and ( "(" .. reason .. ")" ) or "" more = seconds and ( "(" .. secondsToTimeDesc(seconds) .. ")" ) or "" aSetPlayerMuted ( player, not isPlayerMuted ( player ), seconds ) if ( isPlayerMuted ( player ) ) then exports["guimessages"]:outputServer(root, "*[Admin]: "..getPlayerName(player).." Has been Muted By "..getPlayerName(source)..""..more.."", 255, 0, 0) exports["guimessages"]:outputServer(root, "#FFFFFFReason:"..reason..".", 255, 180, 0) triggerClientEvent(player, "kfo", player) playSoundFrontEnd(root, 49) else exports["guimessages"]:outputServer(root, "*#EB0B0B[Admin]: #56EB0B"..getPlayerName(player).." #EB0B0BHas been UnMuted By #FFE275"..getPlayerName(source).."!", 1, 254, 10) playSoundFrontEnd(root, 14) triggerClientEvent(player, "kfo1", player) end ما يظهر ممكن حل ؟
-
الله يوفقك برستيج طيب اسف للازعاج انا ابي لو اللاعب كنج سيرفر يظهر بكولمن Yes والي مو كنج سيرفر يظهر No