-
Posts
897 -
Joined
-
Last visited
Everything posted by #|_oskar_|#
-
GUIEditor = { checkbox = {}, button = {}, gridlist = {}, edit = {}, label = {} } ------ ranks = { {'1','minutes'}, {'2','mintes'}, {'3','mintes'}, {'5','mintes'}, {'10','mintes'}, {'15','mintes'}, {'20','mintes'}, {'30','mintes'}, {'40','mintes'}, {'1','hours'}, {'2','hours'}, {'3','hours'} } -- local screenW, screenH = guiGetScreenSize() wnd = guiCreateWindow(555, 116, 241, 437, ":: Police Panel ::", false) guiWindowSetSizable(wnd, false) guiSetVisible(wnd ,false) GUIEditor.button[1] = guiCreateButton(12, 234, 219, 33, "Jail Player", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFDCE400") GUIEditor.button[2] = guiCreateButton(12, 273, 219, 33, "UnJail Player", false, wnd) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF0A6D00") GUIEditor.button[3] = guiCreateButton(126, 311, 109, 41, "Slap / Kil", false, wnd) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "D1008EB7") GUIEditor.button[4] = guiCreateButton(10, 311, 109, 41, "Destroy Car", false, wnd) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "D1008EB7") GUIEditor.button[5] = guiCreateButton(10, 358, 219, 33, "X", false, wnd) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "D1FFFFFF") GUIEditor.label[1] = guiCreateLabel(13, 395, 84, 15, "Your States :", false, wnd) GUIEditor.checkbox[1] = guiCreateCheckBox(97, 395, 66, 15, "Online", false, false, wnd) GUIEditor.checkbox[2] = guiCreateCheckBox(159, 395, 66, 15, "Busy", false, false, wnd) GUIEditor.label[2] = guiCreateLabel(13, 412, 88, 15, "Work States :", false, wnd) GUIEditor.label[3] = guiCreateLabel(91, 412, 150, 15, "غير أجباري | Not Required", false, wnd) guiSetProperty(GUIEditor.label[3], "NormalTextColour", "FFFF0000") grid = guiCreateGridList(9, 24, 222, 206, false, wnd) guiGridListAddColumn(grid, "ID", 0.3) guiGridListAddColumn(grid, "Time", 0.3) for _, v in ipairs (ranks) do local Row = guiGridListAddRow(grid) guiGridListSetItemText(grid, Row, 1, v[1], false, false) guiGridListSetItemText(grid, Row, 2, v[2], false, false) end wnd2 = guiCreateWindow(205, 211, 375, 170, "Slap Reason:", false) guiWindowSetSizable(wnd2, false) guiSetVisible(wnd2 ,false) GUIEditor.label[1] = guiCreateLabel(72, 37, 290, 19, "Enter slap reason ( this will be visble for all ):", false, wnd2) GUIEditor.edit[1] = guiCreateEdit(77, 61, 250, 29, "", false, wnd2) GUIEditor.button[1] = guiCreateButton(41, 139, 145, 21, "Ok", false, wnd2) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(203, 139, 145, 21, "X", false, wnd2) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") function Strong ( ) guiSetVisible ( wnd,true ) showCursor ( true ) -- اظهار الماوس end addCommandHandler ( "Teams",Strong ) addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then guiSetVisible(wnd2,false) showCursor(false) elseif ( source == GUIEditor.button[3] ) then guiSetVisible(wnd,false) guiSetVisible(wnd2,true) end end ) addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[5] ) then guiSetVisible(wnd,false) showCursor(false) end end)
-
شوف الخطاء بالديبق وصلحه لاتعتمد على احد انه يصلح اخطائك كل مره
-
GUIEditor = { checkbox = {}, button = {}, gridlist = {}, edit = {}, label = {} } wnd = guiCreateWindow(555, 116, 241, 437, ":: Police Panel ::", false) guiWindowSetSizable(wnd, false) guiSetVisible(wnd ,false) GUIEditor.button[1] = guiCreateButton(12, 234, 219, 33, "Jail Player", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFDCE400") GUIEditor.button[2] = guiCreateButton(12, 273, 219, 33, "UnJail Player", false, wnd) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF0A6D00") GUIEditor.button[3] = guiCreateButton(126, 311, 109, 41, "Slap / Kil", false, wnd) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "D1008EB7") GUIEditor.button[4] = guiCreateButton(10, 311, 109, 41, "Destroy Car", false, wnd) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "D1008EB7") GUIEditor.button[5] = guiCreateButton(10, 358, 219, 33, "X", false, wnd) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "D1FFFFFF") GUIEditor.label[1] = guiCreateLabel(13, 395, 84, 15, "Your States :", false, wnd) GUIEditor.checkbox[1] = guiCreateCheckBox(97, 395, 66, 15, "Online", false, false, wnd) GUIEditor.checkbox[2] = guiCreateCheckBox(159, 395, 66, 15, "Busy", false, false, wnd) GUIEditor.label[2] = guiCreateLabel(13, 412, 88, 15, "Work States :", false, wnd) GUIEditor.label[3] = guiCreateLabel(91, 412, 150, 15, "غير أجباري | Not Required", false, wnd) guiSetProperty(GUIEditor.label[3], "NormalTextColour", "FFFF0000") grid = guiCreateGridList(9, 24, 222, 206, false, wnd) guiGridListAddColumn(grid, "Time", 0.9) wnd2 = guiCreateWindow(205, 211, 375, 170, "Slap Reason:", false) guiWindowSetSizable(wnd2, false) guiSetVisible(wnd2 ,false) GUIEditor.label[1] = guiCreateLabel(72, 37, 290, 19, "Enter slap reason ( this will be visble for all ):", false, wnd2) GUIEditor.edit[1] = guiCreateEdit(77, 61, 250, 29, "", false, wnd2) GUIEditor.button[1] = guiCreateButton(41, 139, 145, 21, "Ok", false, wnd2) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(203, 139, 145, 21, "X", false, wnd2) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") function Strong ( ) guiSetVisible ( wnd,true ) showCursor ( true ) -- اظهار الماوس end addCommandHandler ( "Teams",Strong ) addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then guiSetVisible(wnd2,false) showCursor(false) elseif ( source == GUIEditor.button[3] ) then guiSetVisible(wnd,false) guiSetVisible(wnd2,true) end end )
-
guiGridListAddColumn(GUIEditor.gridlist[1], "Name", 0.9) --عدل ع رقم تسعه عشان تقربهم من بعض guiGridListAddColumn(GUIEditor.gridlist[1], "Message", 0.9) --- رقم 9 المسافه بين الاسم والرساله
-
GUIEditor = { tab = {}, tabpanel = {}, edit = {}, button = {}, label = {}, checkbox = {}, gridlist = {} } wnd = guiCreateWindow(67, 98, 680, 435, ":: Support Systeam ::", false) guiWindowSetSizable(wnd, false) guiSetVisible(wnd ,false) GUIEditor.button[1] = guiCreateButton(647, 23, 23, 19, "X", false, wnd) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(504, 411, 245, 24, "#Created By [L]e3bA | v3.4.1", false, wnd) guiLabelSetColor(GUIEditor.label[1], 253, 0, 0) GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 18, 661, 390, false, wnd) GUIEditor.tab[1] = guiCreateTab("Live Chat", GUIEditor.tabpanel[1]) GUIEditor.gridlist[1] = guiCreateGridList(6, 5, 501, 316, false, GUIEditor.tab[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Name", 0.9) guiGridListAddColumn(GUIEditor.gridlist[1], "Message", 0.9) GUIEditor.edit[1] = guiCreateEdit(6, 322, 392, 27, "", false, GUIEditor.tab[1]) GUIEditor.button[2] = guiCreateButton(400, 322, 103, 28, "Send", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.checkbox[1] = guiCreateCheckBox(514, 325, 137, 15, "Show news in chat", false, false, GUIEditor.tab[1]) GUIEditor.gridlist[2] = guiCreateGridList(514, 5, 141, 314, false, GUIEditor.tab[1]) guiGridListAddColumn(GUIEditor.gridlist[2], "Name", 0.9) guiSetVisible (wnd, false) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F5", "down", OpenWin) ------------ addEventHandler("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then guiSetVisible(wnd,false) showCursor(false) end end ) -------------- addEvent("online",true) addEventHandler("online", root, function (name) local g = guiGridListAddRow(GUIEditor.gridlist[2]) guiGridListSetItemText(GUIEditor.gridlist[2],g, 1,""..name.."", false, false) end) -- addEventHandler("onClientGUIClick",GUIEditor.button[2],function () if guiGetText(GUIEditor.edit[1]) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) end end, false) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function(Name,Text) local gg = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 1,Name, false, false) guiGridListSetItemText(GUIEditor.gridlist[1],gg, 2,tostring(Text), false, false) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 1, 255, 0, 0, 255) guiGridListSetItemColor(GUIEditor.gridlist[1],gg, 2, 35, 254, 0, 255) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then outputChatBox("[support-System] #FF0000"..Name.."#FFFFFF : #00FF00"..guiGetText(GUIEditor.edit[1]),255,255,0,true) end end) addEvent("refresh",true) addEventHandler("refresh",root,function () for k,v in ipairs (getElementsByType("player")) do if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(v)),aclGetGroup("Support")) ) then triggerClientEvent("online",source,getPlayerName(v)) end end end) addEvent("support",true) addEventHandler("support",root,function (text) if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Support")) ) then triggerClientEvent("sendmessage2",source,getPlayerName(source),text) else triggerClientEvent("sendmessage2",source,getPlayerName(source),text) end end)
-
المفروض ذا شئ سهل تسويه اول شئ تضيف انشاء الخط Font = dxCreateFont("font.ttf", 13) وبعدين تضيفه بالتكست دراو dxDrawText ( tostring ( v.message ), 0, i*25, sx_, (i+1)*25, tocolor ( v.r, v.g, v.b, v.alpha*1.59375 ), sy*1,Font or "default-bold", "center", "center", false, false, false, true, false) لاتنسي تضيف الخط بالميتا
-
addEventHandler ( "onPlayerLogin", root,function () outputChatBox("* #FF0000[#FFFFA1RentSysteam#FF0000] " .. getPlayerName(source) .. " #FFFFA1: Has logged in #FF0000|#FFFFA1 قام بتسجيل دخوله",root,255,0,0,true) end)
-
للاسف ماعندي البرنامج لانى حذفت كل برامج الحمايه -- شكرا لكم جميعا على المساعده الحل اني اسوي فرمته
-
يب مضبوط ومتاكد منه بس انا سالت واحد يقول انت بتركيا وقام ضاحك
-
addEventHandler("onClientClick",root, -- تقدر تحذفه كذا removeEventHandler("onClientClick",root,
-
r,g,b = math.random(255), math.random(255), math.random(255) guiGridListSetItemColor(gridlist,row,1,r,g,b)
-
شفت الفيديو ذا من قبل ومعلق عليه كمان ان المشكله مازالت موجوده
-
الوقت مضبوط تمام
-
طيب عطنا ايش المشكلة عشان نعرف مشكله قسم بالله قهرتني الجهاز عندي مايفتح غير بعض المواقع يعني الفيس بوك يفتح واليوتيوب يفتح والموقع هنا يفتح باقى المواقع الثانيه ماتفتح يقول تعذر الاتصال بالخادم وابي اعرف ايش المشكله عشان لو واجهتني ثاني اعرف احلها
-
السلام عليكم شباب في حد هنا يفهم بالاجهزه في مشكله عندي وابي اعرفها قبل ماسوي فرمته للجهاز اللى يعرف يعطيني خبر
-
guiCreateFont guiSetFont
-
try this , If you do not add guiGetText addEventHandler ( 'onClientGUIClick', root,function () if (source == clickOnlogin) then if guiGetText (user) ~= "" and guiGetText (pass) ~= "" then triggerServerEvent("loginPlayer", localPlayer,guiGetText (user),guiGetText (pass)) else outputChatBox("Please enter username & password") end end end)
-
يوقف الوقت بعد التعبئه ملاحظه : انا حاطت كلام يظهر بالشات كتوضيح فقط اذا كنت تبي تشيله براحتك بس عندي احساس راح تقول كودك صعب ومدرى ايش بس يلا اذا ماكنت راح تستخدمه يمكن يفيد غيرك healthTimer = {} addEvent ("armor", true) addEventHandler ("armor", root,function () if healthTimer[source] and isTimer(healthTimer[source]) then killTimer(healthTimer[source]) end healthTimer[source] = setTimer ( function (source) Health = getElementHealth (source) Armor = getPlayerArmor (source) if Health < 100 or Armor < 100 then if isElement(source) then setPlayerArmor (source ,Armor+1) setElementHealth (source,Health+1.5) outputChatBox ("Your Heath ["..math.ceil(Health)..'] Your Armor ['..math.ceil(Armor).. ']',source,255,0,0,true) end elseif isElement(source) then killTimer(healthTimer[source]) healthTimer[source] = nil outputChatBox ('تمت التعبئه',source,255,0,0,true) end end,1000,0,source) end)
-
ماغيرت شئ فيه بس ضفت تحقق وقتل الوقت لو اللاعب ضغط اكثر من مره على الزر مايكرر التايمر والدم ماينفع تزوده 1 لازم يكون اكثر من ال 1 عشان يزيد
-
healthTimer = {} addEvent ("armor", true) addEventHandler ("armor", root,function () if healthTimer[source] and isTimer(healthTimer[source] ) then killTimer(healthTimer[source] ) end healthTimer[source] = setTimer ( function (source) if isElement (source) then setPlayerArmor (source ,getPlayerArmor (source) +1) setElementHealth (source,getElementHealth (source)+1.5) end end,1000, 0,source) end)
-
localPlayer -- كلنت فقط source -- بدلها بسورس