Jump to content

Adham

Members
  • Posts

    2,259
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Adham

  1. "onClientGUIClick" addEventHandler guiCreateStaticImage
  2. addEventHandler guiGetText guiGridListClear "onClientGUIChanged" guiGridListSetItemText guiGridListSetItemColor
  3. جابر ممكن تظبت الكود @_@؟
  4. function onGuiClick(button, state, absoluteX, absoluteY) if source == button then-- هنا اسم الزر الي اذا ضغطنا عليه ينقلنا setElementPosition(localPlayer,x,y,z) -- هنا الاحداثيات setPedRotation(localPlayer,91.98) end end addEventHandler("onClientGUIClick", root, onGuiClick) guiSetProperty(اسم الزر,"NormalTextColour", "FF00FF00") -- اللون
  5. addEventHandler ( "onClientGUIClick", resourceRoot, function() if ( source == img ) then photo = guiCreateStaticImage ( 20, 200, 100, 100, "imagename.png", false ) end end)
  6. السلام علييكم اناا ليوم عملت مد سبورت سيستم المشكله انو مش بيبعت + انا حاطط كود البيعمل الما يجي اللوح في وجهي ما طلع كلنت addEventHandler("onClientResourceStart", resourceRoot, function() wind = guiCreateWindow(82, 96, 632, 398, ":: Support Systeam ::", false) guiWindowSetSizable(wind, false) guiSetVisible(wnd,false) chatbox = guiCreateCheckBox(467, 325, 150, 15, "Show news in ChatBox", false, false, wind) guiSetProperty(chatbox, "NormalTextColour", "FFE36000") grid2 = guiCreateGridList(467, 22, 155, 299, false, wind) guiGridListAddColumn(grid2, "Support List", 0.9) grid = guiCreateGridList(10, 22, 447, 333, false, wind) guiGridListAddColumn(grid, "Message", 0.9) edit = guiCreateEdit(10, 359, 335, 29, "", false, wind) button_send = guiCreateButton(352, 360, 110, 28, "Send", false, wind) guiSetProperty(button_send, "NormalTextColour", "FFAAAAAA") X = guiCreateButton(598, 350, 19, 17, "X", false, wind) guiSetProperty(X, "NormalTextColour", "FFAAAAAA") created = guiCreateLabel(472, 370, 150, 16, "#Created By FawaD v1.3.4", false, wind) guiLabelSetColor(created, 226, 0, 0) end ) function aa() guiGridListClear(grid2) triggerServerEvent("refresh",localPlayer) end bindKey("F5","down", function() guiSetVisible(wnd, not guiGetVisible(wnd) ) showCursor( guiGetVisible(wnd) ) aa() end) addEvent("online",true) addEventHandler("online", root, function (name) local g = guiGridListAddRow(supportonline) guiGridListSetItemText(supportonline,g, 1,""..name.."", false, false) end) addEventHandler("onClientGUIClick",button1,function () if guiGetText(edit) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(edit)) end end, false) addEvent("sendmessage",true) addEventHandler("sendmessage",root, function() local gg = guiGridListAddRow(supportchat) guiGridListSetItemText(supportchat,gg, 1,getPlayerName(localPlayer).." : "..guiGetText(edit), false, false) if ( guiCheckBoxGetSelected( chatbox ) == true ) then outputChatBox("[support-System]"..getPlayerName(localPlayer).." : "..guiGetText(edit),255,255,0) end end) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function() local gg = guiGridListAddRow(supportchat) guiGridListSetItemText(supportchat,gg, 1,getPlayerName(localPlayer).." : "..guiGetText(edit), false, false) if ( guiCheckBoxGetSelected( chatbox ) == true ) then outputChatBox("[support-System]"..getPlayerName(localPlayer).." : "..guiGetText(edit),255,255,0) 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 () if isObjectInACLGroup ("user.*", aclGetGroup ( "Support" ) ) then triggerClientEvent("sendmessage",source) else triggerClientEvent("sendmessage2",source) end end)
  7. عطيته الكود وش تسوي انت طيب اعتذر ما شفت ردك كنت بعطيه الكود ما شفت
  8. حاول علي الاقل تعمل اللوحه . من مود gui
  9. تفضل . addEventHandler("onClientGUIClick",root, function() if source == GUIEditor.button[1] then setElementPosition(localPlayer,posX,posY,PosZ) setElementModel(localPlayer,Id) end end )
  10. setWeather "onClientGUIClick"
  11. Adham

    تعديل

    طيب عملت كل ش انا عامل جدول للرتب عملت كل شي ظبت بس الرتب ما موجوده في القريد لست شوفو المشكله @@ صوره
  12. السلام عليكم انا صنعت مود الرتب مش بيفتح المود اصلن عاوز تعديل عليه او تعديل الخطاء كلينت local alzr = 'F7' GUIEditor = { gridlist = {}, window = {}, button = {} } -------alRtb ranks = { {'Assistant console',40}, {'adminstartion',40}, {'king of admins',40}, {'Manager server plus',40}, {'Manager server',40}, {'HED.ADMIN',40}, {'best admin',40}, {'super admin',40}, {'admin.Plus',40}, {'SuperModerator',40}, {'Moderator',40}, {'king of time',25} } ---------- local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow(148, 156, 452, 341, "=[ لوحــة التــرقيـات ]=", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFC8F01") GUIEditor.gridlist[1] = guiCreateGridList(9, 24, 433, 264, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "الرتب", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "عدد الساعات المطلوبه #", 0.5) for _,v in ipairs (ranks) do GUIEditor.button[1] = guiCreateButton(146, 294, 150, 31, "=[ تــرقيـة ]=", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(390, 303, 47, 28, "X", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF9FB547") end ) -- bindKey (alzr,'down', function () guiSetVisible (GUIEditor.window[1],not guiGetVisible (GUIEditor.window[1])) showCursor (guiGetVisible (GUIEditor.window[1])) end) addEventHandler( "onClientMouseEnter", getRootElement(), function(aX, aY) if source == GUIEditor.button[1] then playSound ('sond.mp3') end end) addEventHandler ('onClientGUIClick',root, function () if source == GUIEditor.button[1] then local rank = guiGridListGetItemText (GUIEditor.gridlist[1],guiGridListGetSelectedItem (GUIEditor.gridlist[1]),1) local Price = guiGridListGetItemText (GUIEditor.gridlist[1],guiGridListGetSelectedItem (GUIEditor.gridlist[1]),2) local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) if ( row and col and row ~= -1 and col ~= -1 ) then triggerServerEvent ('setRank',localPlayer,rank,Price) else triggerServerEvent ('error',localPlayer,rank,Price) end elseif source == GUIEditor.button[2] then guiSetVisible (GUIEditor.window[1],false) showCursor (false) end end ) سرفر addEvent ('setRank',true) addEventHandler ('setRank',root, function(rank,Price) accountName = getPlayerAccount (source) TheAcc = getAccountName (accountName) getAcl = aclGet ( rank ) if isGuestAccount(getPlayerAccount(source)) then return outputChatBox(" * يجب عليك التسجيل اولاَ",source,255,0,0,true); end if isObjectInACLGroup ("user."..TheAcc,aclGetGroup(rank)) then outputChatBox ('*[انت في هذه الرتبة بالفعل]',source,255,0,0) return end if isObjectInACLGroup ("user."..TheAcc,aclGetGroup('Console')) then outputChatBox ('*[انت في رتبة كونسول لا تستطيع شراء رتب]',source,255,0,0) return end local sValue = getElementData( source,'PlayTime' ) if not sValue then sValue = '0:0:0' end local data = split(sValue,':') local hour = tonumber( data[1] ) if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then aclGroupAddObject (aclGetGroup(rank), "user."..TheAcc) outputChatBox ('*[بنجاء '..rank..' تم شراء رتبة]',source,0,255,0) removeAcl = aclGroupList () for _,v in ipairs (removeAcl) do aclGroupRemoveObject ( v, 'user.'..TheAcc) end else outputChatBox ('*[ '..rank..' ليس لديك الساعات الكافيه لشراء رتبة]',source,255,0,0) end end ) addEvent ('error',true) addEventHandler ('error',root, function(rank,Price) outputChatBox (rank..' *[الرجاء اختيار الرتبه]',source,255,0,0) end)
  13. Adham

    مشكله

    ما فتحت الالوحه اصلن اجي اشيل الكود في كلنت تفتح عادي.
  14. Adham

    مشكله

    ما شتغل @_@
  15. Adham

    مشكله

    كلينت . GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(151, 132, 482, 359, "##", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1] ,false) -- عدم اظهار الوحة وقت تشغيل المود GUIEditor.button[1] = guiCreateButton(135, 169, 242, 59, "Give", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") end ) -- bindKey("x","down", function ( ) guiSetVisible ( GUIEditor.window[1] , not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( not isCursorShowing ( ) ) end ); addEventHandler ( "onClientGUIClick", root, function () -- نسوي الفنشكن if (source == GUIEditor.button[1] ) then -- triggerServerEvent ( "Give", localPlayer,) end end ) سرفر - addEvent ( "Give", true ) addEventHandler ("Give", root, function () giveWeapon ( source , 31 , 200 ) end )
  16. Adham

    مشكله

    ما تطلع الوحه من اساسا امسح الكود تفتح .
  17. شو المشكله ب الكود ذا .؟ الكود عباره عن تضعط زر يطلع لك سلاح client addEventHandler ( "onClientGUIClick", root, function () -- نسوي الفنشكن if (source == GUIEditor.button[1] ) then -- triggerServerEvent ( "Give", localPlayer,) end end ) سرفر - addEvent ( "Give", true ) addEventHandler ("Give", root, function () giveWepon ( source , 31 , 200 ) end )
  18. addEventHandler("onClientGUIClick",resourceRoot, function ( ) if source == GUIEditor.button[9] then setPedAnimation ( localPlayer ,'CRACK', 'BD_Fire1') elseif source == GUIEditor.button[5] then setPedAnimation(localPlayer , nil) elseif source == GUIEditor.button[5] then setPedAnimation(localPlayer,"CRIB", "BD_Fire1") end end)
×
×
  • Create New...