-
Posts
906 -
Joined
-
Last visited
Everything posted by SaedAmer
-
ما فهمتني انا قصدي احط الكود ده فكشن ل زر1 لما اضغط علي الزر1 ( البطن 1) ض يشتغل الكود الي فوق
-
اخي طلبي هو كود لما اضغط علي بطن 1 يشغل الكود ده function chatbox( text, type) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#a5a5a5*[Owner]#33ff00".. getPlayerName ( source ) .. "#FFFF00:".. text.., getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("مراقب")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#a5a5a5*[Moderator]#33ff00".. getPlayerName ( source ) .. "#Ffffff:".. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("سوبر مراقب")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#a5a5a5*[super-M]: #ffff00".. getPlayerName ( source ) .."#FFFFff:".. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("ادمن")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#a5a5a5*[Admin]#33ff00".. getPlayerName ( source ) .. "#FFFFff:".. text, getRootElement(), r, g, b, true ) elseif isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("مساعد")) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox("#a5a5a5* [H-Owner]#33ff00".. 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("*".. getPlayerName ( source ) .. "#FFFFff:".. text, getRootElement(), r, g, b, true ) end end و لما اضغط علي بطن 2 يوقف الكود و يشغل كود تاني انا هحطه
-
ابي كود لما اضغط علي بطن1 يشتغل الافنت الي هحطو اتمني تكونو فهمتو
-
طيب ما انا كلمت صحاب الاستضافة قالولي ليس لنا دخل
-
DxDrawImage3D
-
معي سيرفر بس لا بظهر في البحث جربت مليون اسم و بردو مش بيظهر في البحث ارجو الحل
-
الحين انت قلي وش الفرق ي @ٍSaedAmer عرفت وش الفرق ؟؟
-
local screenW, screenH = guiGetScreenSize() wnd = { } edit = { } GUIEditor = { button = {}, label = {} } wnd.give = guiCreateWindow((screenW - 373) / 2, (screenH - 189) / 2, 373, 189, "~# Give Level #~", false) guiWindowSetSizable(wnd.give, false) guiSetAlpha(wnd.give, 1.00) pList = guiCreateGridList(10, 22, 146, 157, false, wnd.give) guiGridListAddColumn(pList, "# Player Name", 0.9) GUIEditor.button[1] = guiCreateButton(251, 152, 112, 27, "~# Close #~", false, wnd.give) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(161, 28, 202, 15, "Player Level :", false, wnd.give) GUIEditor.button[2] = guiCreateButton(163, 54, 88, 24, "Set Level", false, wnd.give) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(161, 83, 196, 30, "#Arabic", false, wnd.give) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.button[4] = guiCreateButton(161, 118, 196, 30, "#English", false, wnd.give) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") guiSetVisible(wnd.give,false) SetLevelWnd = guiCreateWindow((screenW - 286) / 2, (screenH - 134) / 2, 286, 134, "# Set Level", false) guiWindowSetSizable(SetLevelWnd, false) guiSetAlpha(SetLevelWnd, 1.00) edit.gv = guiCreateEdit(11, 37, 265, 33, "", false, SetLevelWnd) guiEditSetMaxLength(edit.gv, 65535) SetLevel = guiCreateButton(23, 87, 94, 32, "Set Level", false, SetLevelWnd) guiSetProperty(SetLevel, "NormalTextColour", "FFAAAAAA") SLClose = guiCreateButton(166, 87, 94, 32, "Close", false, SetLevelWnd) guiSetProperty(SLClose, "NormalTextColour", "FFAAAAAA") guiSetVisible(SetLevelWnd,false) bindKey ("n","down", function () triggerServerEvent ("checkMido",localPlayer) end ) addEvent ("mIDO",true) addEventHandler ("mIDO",root, function () guiSetVisible(wnd.give,not guiGetVisible(wnd.give)) showCursor(guiGetVisible(wnd.give)) guiSetInputEnabled (guiGetVisible(wnd.give)) end ) addEventHandler("onClientGUIClick",root, function ( ) if ( source == SLClose ) then guiSetVisible(SetLevelWnd,false) showCursor(false) guiSetInputEnabled(false) elseif ( source == GUIEditor.button[1] ) then guiSetVisible(wnd.give,false) showCursor(false) guiSetInputEnabled(false) elseif ( source == GUIEditor.button[2] ) then guiSetVisible(SetLevelWnd,true) guiSetVisible(wnd.give,false) guiSetInputEnabled(false) end end ) function Up ( ) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (pList) guiGridListClear(pList) guiGridListSetItemText (pList,rp,1,getPlayerName(v),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,Up) addEventHandler ("onClientPlayerJoin",getRootElement( ),Up) addEventHandler ("onClientPlayerChangeNick",getRootElement( ),Up) addEventHandler ("onClientPlayerQuit",getRootElement( ),Up)
-
local key = "m" GUIEditor = { gridlist = {}, window = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 468) / 2, (screenH - 436) / 2, 468, 436, "xX[Police Panel | لوحة الشرطي]Xx", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0012FE") guiSetVisible (GUIEditor.window[1],false) GUIEditor.button[1] = guiCreateButton(274, 32, 172, 35, "xX[slap|سلاب]Xx", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFC70009") GUIEditor.button[2] = guiCreateButton(274, 101, 172, 35, "xX[Destroy Vehicle | سحب السيارة]Xx", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFC70009") GUIEditor.gridlist[1] = guiCreateGridList(14, 27, 235, 389, false, GUIEditor.window[1]) Column = guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9) changeGridListItemToPlayersName( GUIEditor.gridlist[1], Column ) GUIEditor.button[3] = guiCreateButton(377, 358, 19, 16, "", false, GUIEditor.gridlist[1]) GUIEditor.button[4] = guiCreateButton(286, 381, 172, 35, "xX[Close Window|اغلاق النافذة]Xx", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFC70009") end ) function Show_Hide() if guiGetVisible(GUIEditor.window[1]) == false then guiSetVisible(GUIEditor.window[1], true) showCursor(true) else guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end bindKey(key,"down",Show_Hide) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[4] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then setElementHealth(localPlayer,0) end end ) changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then -- Check Parematers if getElementType ( GridList ) == "gui-gridlist" then -- Check The Type of ' GridList ' if guiGridListClear ( GridList ) then -- Clear GridList for i, v in next, getElementsByType ( "player" ) do -- Get Everything by Type ' player ' local Row = guiGridListAddRow ( GridList ) -- Add Row guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); -- Set New Values end; -- end of ' for ' end; -- end of ' clear gridlist ' end; -- end of ' check gridlist type ' end; -- end of ' check parematers end; -- end of ' function '
-
طلب تاني ------ كود يحفظ التيمات يعني لو العب خرج و دخل التيم بتاعه يفضل زي ما هو
-
اوك بس السبب هيظهر في التور بار شات ؟ + هو بيظهر في الشات و التوب بار شات انا عاوزه يظهر توب بار شات بس اوك شكرا لك شف مخارج الشات بالأدمنية وأحذف الإخراج بالشات حق الأشياء اللي تبغاها
-
اوك بس السبب هيظهر في التور بار شات ؟ + هو بيظهر في الشات و التوب بار شات انا عاوزه يظهر توب بار شات بس
-
الرجال يقول لك بالبداية حطه ملف Server side وانت حاطه Client.lua ضض سورة ما خدت بالي + بيظهر في الشات و التوب بار شات + ابيه يظهر مع السبب سوري تعبتكم معي
-
طيب ومن وين جبت الاعب ؟ source = nil غير معرفة اول سطر ! addEventHandler("onPlayerMute",root, function() local name = getPlayerName(source) exports["TopBarChat"]:sendClientMessage("".. name .." Has been muted ! ",root,255,0,0) end ) addEventHandler("onPlayerUnmute",root, function() local name = getPlayerName(source) exports["TopBarChat"]:sendClientMessage("".. name .." Has been Unmuted ! ",root,0,255,0) end ) addEventHandler("onPlayerBan",root, function() local name = getPlayerName(source) exports["TopBarChat"]:sendClientMessage("".. name .." Has been Banned ! ",root,255,0,0) end ) كذا يصير
-
عارف انا قلت تعديل عليه التوب شات يجي تحت انا ابيه فوق