Jump to content

#|_oskar_|#

Members
  • Posts

    897
  • Joined

  • Last visited

Everything posted by #|_oskar_|#

  1. لم تتم التجربه GUIEditor = {memo = {},button = {},edit = {},window = {},} GUIEditor.window[1] = guiCreateWindow(234, 146, 296, 356, "لوحة معلومات الاعبين", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(77, 93, 171, 31, "اظهآر معلومات الحساب", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(73, 39, 175, 30, "", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(21, 176, 261, 167, "", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) ----- addEventHandler("onClientGUIClick",GUIEditor.button[1],function() plr = guiGetText(GUIEditor.edit[1]) if plr then triggerServerEvent("Add", localPlayer,plr) else guiSetText(GUIEditor.memo[1],"Error") end end,false) ------ addEvent("aad",true) addEventHandler("aad", root,function (name,acc,acl,serial,My,Ping) guiSetText(GUIEditor.memo[1],"\n Name:"..name.."\n Account :"..acc.."\n Groups :"..acl.."\n Serial :"..serial.."\n Money:"..My.."\n Ping : " ..Ping) end) function getPlayerAcls(thePlayer) local acls = {} local account = getPlayerAccount(thePlayer) if (account) and not (isGuestAccount(account)) then local accountName = getAccountName(account) for i,group in ipairs(aclGroupList()) do if (isObjectInACLGroup( "user." ..accountName, group)) then local groupName = aclGroupGetName(group) table.insert(acls, groupName) end end end return acls end addEvent("Add",true) addEventHandler("Add", root,function(theAccount) local account = getAccount(theAccount) if ( account ) then local acc = getAccountName(account) local acl = getPlayerAcls(source) local name = getPlayerName(source) local serial = getPlayerSerial(source) local My = getPlayerMoney(source) local ping = getPlayerPing(source) triggerClientEvent(client,"aad",client,name,acc,tostring( table.concat(acl, ", ") ),serial,My,ping) end end)
  2. addCommandHandler ( "ss",function ( ) guiSetVisible (window,not guiGetVisible (window) ) showCursor (guiGetVisible (window) ) end)
  3. الاكواد اللى عطيته لك شغاله مافيها شئ بس المشكله من عندك انت من اكوادك ع العموم ان شاء الله تلاقي اللى يساعدك بطلبك بالتوفيق
  4. اطرح اكواد الكنت هنا او خاص اللى يريحك
  5. اطرح الكلنت اضبطه لك
  6. الكود الاول تبع لوحة تسوي تاج بالشات و الكود التاني تبع مود التاجات للسيرفر كلو فاهم انا دمجتهم على بعض عشان مايكرر الكلام مرتين بالشات
  7. الترايقر مالهوش دخل باللي سويته
  8. جرب addEventHandler("onPlayerChat",root, function( text, type) local tag = getElementData(source,"tag") or "#5494A7* [ AL-MLOoK ] " local colour = getElementData(source,"colour") or '#FFFFFF' if getElementData(source,"Data_Tag") then return cancelEvent() end if getElementData(source,"tag") == true then return cancelEvent() end if type == 1 or type == 2 then return end if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) return outputChatBox("#FF0000* [ Console ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) else end if getElementData ( resourceRoot, "chat" ) == true then cancelEvent() return outputChatBox ("[C.Console]: Chat has been locked by Console ",source,255,0,0,true) end if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 1")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#0099DC* [ Lv.1 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 2")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#2554C7* [ Lv.2 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 3")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#00cc11* [ Lv.3 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 4")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#007700* [ Lv.4 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 5")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#cc0000* [ Lv.5 ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Level 6")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#FF0000* [ Lv.6 ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Head.Admin")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#C11B17* [ Head.Admin ] " .. getPlayerName ( source ) ..": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("V.I.P")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#DCD800* [ VIP ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("SaedAmer")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#cd0000* [ VIP ]#ffff00 سعيد : #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("mosp")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#02AB2F* [ AL-MLOok Event's] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Manager")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#347235* [ T-Developer ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin - Ex")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#777777* [ Admin - EX ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Police")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#007F7F* [ Soldier ] " .. getPlayerName ( source ) .. ": #ffFFff" .. text, getRootElement (), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Everyone")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox(tag ..' '.. getPlayerName(source) .. ''..colour..' : '.. text, getRootElement(), r, g, b, true ) end end)
  9. انت تبي تكتب حساب اللاعب ولا اسمه لاني مسويه لك عند كتابة الاسم يظهر لك معلوماته
  10. جرب GUIEditor = { memo = {}, button = {}, edit = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(234, 146, 296, 356, "لوحة معلومات الاعبين", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(77, 93, 171, 31, "اظهآر معلومات الحساب", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(73, 39, 175, 30, "", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(21, 176, 261, 167, "", false, GUIEditor.window[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) ----- addEventHandler("onClientGUIClick",GUIEditor.button[1],function() plr = getPlayerFromName(guiGetText(GUIEditor.edit[1])) if plr then triggerServerEvent("Add", localPlayer,plr) else guiSetText(GUIEditor.memo[1],"Error") end end,false) ------ addEvent("aad",true) addEventHandler("aad", root,function (name,acc,acl,serial,My,Ping) guiSetText(GUIEditor.memo[1],"\n Name:"..name.."\n Account :"..acc.."\n Groups :"..acl.."\n Serial :"..serial.."\n Money :"..My.."\n Ping : " ..Ping) end) function getPlayerAcls(thePlayer) local acls = {} local account = getPlayerAccount(thePlayer) if (account) and not (isGuestAccount(account)) then local accountName = getAccountName(account) for i,group in ipairs(aclGroupList()) do if (isObjectInACLGroup( "user." ..accountName, group)) then local groupName = aclGroupGetName(group) table.insert(acls, groupName) end end end return acls end addEvent("Add",true) addEventHandler("Add", root,function(Player) local acc = getAccountName(getPlayerAccount(Player)) local acl = getPlayerAcls(Player) local name = getPlayerName(Player) local serial = getPlayerSerial(Player) local My = getPlayerMoney(Player) local ping = getPlayerPing(Player) triggerClientEvent(client,"aad",client,name,acc,tostring( table.concat(acl, ", ") ),serial,My,ping) end)
  11. getPlayerAcls وين اليوسفل حقه ؟
  12. ماشاء الله عليك عندك ذكاء عساه مايجيني
  13. اغلب المشاكل اللى تصير زي كدا هو الترميز غير ترميز الملف الى utf-8
  14. اكتب ب اف 8 debugscript 3 واعرفالاخطاء وين واي سطر
  15. حط دا بالكلنت addEventHandler('onClientGUIClick',GUIEditor.button[5] ,function ( ) triggerServerEvent('JetPack', localPlayer) end,false) ---- function guiEnabled(En,Te) guiSetEnabled(GUIEditor.button[5] ,En) guiSetText (GUIEditor.button[5] , Te ) end ---- addEvent("Enabled",true) addEventHandler("Enabled", root,function() guiEnabled(false,'Please wait') setTimer (guiEnabled, 3600000, 1, true,'Buy JetPack' ) end) وبالسيرفر تحت رسالة الشراء حط الترايقر دا triggerClientEvent(source,'Enabled',source) وبس اعتقد مافي شئ صعب بالموضوع
  16. اطرح كودك قبل تعدل عليه لانك مسوي اشياء غلط وحاطت كلنت على سيرفر + انت لو جربت كودي راح تشوف ان هو نفس طلبك لو مامعك فلوس الزر يكون مفتوح ومايقفل ويجي له بالشات انه مامعه فلوس ولو اشترى الجيب باك يقفل له الزر لمدة 5 ثواني
  17. اكوادك مافهمت لها صراحه + سويت الكود دا فقط لاوضح لك كيفية قفل الزر عند شراء الجيب باك
  18. ممكن توضح اللى تبيه
  19. جرب سويته لك كمثال window = guiCreateWindow(0.30, 0.38, 0.37, 0.15, "", true) guiWindowSetSizable(window, false) button = guiCreateButton(0.02, 0.24, 0.95, 0.60, "Buy JetPack", true, window) ---- addEventHandler('onClientGUIClick',button,function ( ) triggerServerEvent('JetPack', localPlayer) end,false) ---- function guiEnabled(En,Te) guiSetEnabled(button,En) guiSetText (button, Te ) end ---- addEvent("Enabled",true) addEventHandler("Enabled", root,function() guiEnabled(false,'Please wait') setTimer (guiEnabled, 5000, 1, true,'Buy JetPack' ) end) amount = 20000 addEvent("JetPack",true) addEventHandler("JetPack",root, function ( ) if tonumber(amount) <= getPlayerMoney( source ) then takePlayerMoney( source, amount ) givePedJetPack ( source ) outputChatBox("#FF0000*#FFFF00[VIP System] #00FF00You have been given a jetpack.", source, 255, 0, 0 , true ) triggerClientEvent(source,'Enabled',source) else outputChatBox( "#FF0000*#FFFF00[VIP System] #FF0000You don't have enough money (20000$).", source, 255, 0, 0 , true ) end end)
  20. سوي ترايقر من سيرفر الى كلنت اذا اشترى الجيب باك يقفل الزر واذا مامعه فلوس مايقفل الزر مدرى اذا فهمتني او لا
  21. الاكواد مطروحه فوق + مستلزمات القريد ليست اظن انك تعرفها
  22. طلبك سهل جدا بس للاسف انت اتعودت ع الجاهز
×
×
  • Create New...