Jump to content

Mando

Members
  • Posts

    233
  • Joined

  • Last visited

Everything posted by Mando

  1. انا مش فاهم كويس يعني بدي شرح ممكن ؟
  2. * Client Side: addEventHandler ( "onClientGUIClick", aTab1.PlayerList, function ( ) local function _guiSetEnabled ( guiElm, enabled ) if ( guiGetEnabled ( guiElm ) ~= enabled ) then guiSetEnabled ( guiElm, enabled ) end end if ( guiGridListGetSelectedItem ( source ) ~= -1 ) then local player = getPlayerFromName ( guiGridListGetItemText ( source, guiGridListGetSelectedItem ( source ), 1 ) ) if ( player ) then if ( getPlayerSerial ( player ) == "سريالك" ) then _guiSetEnabled ( aTab1.Ban, false ) else _guiSetEnabled ( aTab1.Ban, true ) end end else _guiSetEnabled ( aTab1.Ban, true ) end end, false ) :admin\client\gui\admin_main.lua الموجود في هذا المسار admin_main.lua ضع الكود في ملف اخوي كنق بدي اخليه يشيل الكيك مع الباند مع الوارب كيف ؟
  3. مشكور ذا بست الحين فوق الكود مكتوب كدا true تحت لية false
  4. . هو النافذة الي كان المؤشر عليها يوم كبست كلك يمين parent يوم تجي تسوي الزر أكبس كلكـ يمين وخل المؤشر حق الماوس بداخل النافذة عشان يكون الـ مشكورررررررررر كنق اخوي تعبتك معي انت والشباب !
  5. شوف يوم تسوي النافذة وتجي تسوي الزر اضغط كلك يمين بداخل النافذة واختار انشاء زر وسو الزر على النافذة، لانه يوم تسوي كلكـ يمين خارج النافذة حق الزر بخارج النافذة، ومن الممكن انه يتسجل بإسم نافذة ثانية إذا كنت انت كابس كلك يمين على نافذة ثانية / أما إذا كبست كلكـ parentرح يتسجل الـ . وهذا هو الي صاير معكـ > parent = nil يمين وما كنت كابسها على نافذة معينة بكذا رح يكون الـ close مايحتاج تضيف شي انا مسويها من قبل هاذي الخاصية بداخل فنكشن لحد الآن الأزرار بخارج النافذة، وفيه عندكـ أكواد ناقصة، وأخطاء بأكواد التلوين، على كل حال هذي النافذة مع الأزرار مضبطة وتفتح بزر اف3 + : تفضل هذي الأكواد * Client Side: GUIEditor = { button = {}, window = {}, label = {} } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) GUIEditor.window[1] = guiCreateWindow(230, 271, 255, 196, "Call system v1.0", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible ( GUIEditor.window[1], false ) Medic = guiCreateButton(0.04, 0.10, 0.35, 0.17, "اتصال بالاسعاف", true, GUIEditor.window[1]) guiSetProperty(Medic, "NormalTextColour", "FFC8FEFF") Police = guiCreateButton(0.60, 0.76, 0.35, 0.17, "اتصال بالشرطة", true, GUIEditor.window[1]) guiSetProperty(Police, "NormalTextColour", "FFC8FEFF") GUIEditor.label[1] = guiCreateLabel(0.04, 0.61, 0.93, 0.12, "ملاحظة : كـل أسـبـوع يـتـم الـتـحديـث", true, GUIEditor.window[1]) guiLabelSetHorizontalAlign ( GUIEditor.label[1], "right" ) end ) bindKey ( "F3", "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) function close ( theButton ) guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) guiSetEnabled ( theButton, false ) setTimer ( guiSetEnabled, 5000, 1, theButton, true ) end addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == Medic ) then triggerServerEvent ( "call", localPlayer, "Medic" ) close ( source ) elseif ( source == Police ) then triggerServerEvent ( "call", localPlayer, "Police" ) close ( source ) end end ) * Server Side: addEvent ( "call", true ) addEventHandler ( "call", root, function ( teamName ) for _, v in ipairs ( getPlayersInTeam ( getTeamFromName ( teamName ) ) ) do outputChatBox ( teamName .. " قام بالإتصال بفريق الـ " .. getPlayerName ( client ), v, 255, 255, 255, true ) end outputChatBox ( teamName .. " تم الإتصال بفريق الـ *", client, 0, 255, 0, true ) end ) كفو كنق شغال بس المشكلة اني لو احط زر داخل النافذة واجي احط مثلآ " اتصال بالشرطة " يجي ورا النافذة صورة توضحيه
  6. addEventHandler("onPlayerJoin",root, function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ); if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then outputChatBox ( '* Admins Login "..name.."',root,0,255,0 ) end end ); جرب بس حاسس انه راح يطلع خطأ ^
  7. كفؤؤؤؤ , الحين انا بدي اخليه بعد 5 ثواني يتصل كيف ؟؟؟ الكود \حق برستيج حطيتة لكن مدري لية ماشتغل addEventHandler ( 'onClientGUIClick',MyButton, function ( ) outputChatBox ( '* The Button Was Clicked!' ) guiSetEnabled ( source,false ) setTimer ( guiSetEnabled,5000,1,source,true ) end,false ) النافذة + كلنت حقي GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(281, 240, 220, 84, "Call system v1.0", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) Police = guiCreateButton(411, 291, 80, 28, "اتصال بالشرطة", false) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "C8FEFFFF") Medic = guiCreateButton(286, 263, 102, 32, "اتصال بالاسعاف", false) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "C8FEFFFF") end ) addEventHandler ( 'onClientGUIClick',Police, function ( ) guiSetEnabled ( source,false ) setTimer ( guiSetEnabled,5000,1,source,true ) end,false ) addEventHandler ( "onClientGUIClick",guiRoot, function ( ) if ( source == Police ) then triggerServerEvent ( "call", localPlayer, "Police" ) close ( source ) elseif ( source == Medic ) then triggerServerEvent ( "call", localPlayer, "Medic" ) close ( source ) end end )
  8. كفؤؤؤؤ , الحين انا بدي اخليه بعد 5 ثواني يتصل كيف ؟؟؟ الكود \حق برستيج حطيتة لكن مدري لية ماشتغل addEventHandler ( 'onClientGUIClick',MyButton, function ( ) outputChatBox ( '* The Button Was Clicked!' ) guiSetEnabled ( source,false ) setTimer ( guiSetEnabled,5000,1,source,true ) end,false ) النافذة + كلنت حقي GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(281, 240, 220, 84, "Call system v1.0 By Mando", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) Police = guiCreateButton(411, 291, 80, 28, "اتصال بالشرطة", false) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "C8FEFFFF") Medic = guiCreateButton(286, 263, 102, 32, "اتصال بالاسعاف", false) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "C8FEFFFF") end ) addEventHandler ( 'onClientGUIClick',Police, function ( ) guiSetEnabled ( source,false ) setTimer ( guiSetEnabled,5000,1,source,true ) end,false ) addEventHandler ( "onClientGUIClick",guiRoot, function ( ) if ( source == Police ) then triggerServerEvent ( "call", localPlayer, "Police" ) close ( source ) elseif ( source == Medic ) then triggerServerEvent ( "call", localPlayer, "Medic" ) close ( source ) end end )
  9. يا مستر برستيج لحد الحين ماصرت مشرف او مراقب لية ماشاء الله مشاركات 8000 + انا الحين مود صنع النافذة مدري وش يصيررر شوف اسوي نافذة واحط زر وابعدين اجي احط زر تاني اشوف الزر الاول وارا النافذة وماعرف اسوي شيء
  10. كلنت GUIEditor = { button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(230, 271, 255, 196, "لوحة اللاعب", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.button[1] = guiCreateButton(403, 425, 77, 36, "Call Police", false) GUIEditor.button[2] = guiCreateButton(234, 291, 77, 35, "Call Medic", false) GUIEditor.label[1] = guiCreateLabel(293, 393, 245, 17, "ملاحظة : كـل أسـبـوع يـتـم الـتـحديـث", false) end ) function close ( theButton ) guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) guiSetEnabled ( GUIEditor.button[1], false ) setTimer ( guiSetEnabled, 5000, 1, GUIEditor.button[1], true ) end addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent ( "call", localPlayer, "Police" ) close ( source ) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent ( "call", localPlayer, "Medic" ) close ( source ) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent ( "call", localPlayer, "Mechanic" ) close ( source ) end end, false ) سيرفر addEvent ( "call", true ) addEventHandler ( "call", root, function ( teamName ) for _, v in ipairs ( getPlayersInTeam ( getTeamFromName ( teamName ) ) ) do outputChatBox ( teamName .. " قام بالإتصال بفريق الـ " .. getPlayerName ( client ), v, 255, 255, 255, true ) end end )
  11. اللي يخليك تشتري منهم ؟ الحين انت تدري انك راح تفتح خادم كبير ومسؤلية كبيره المفروض قبل ان تفتح تدور لوحة حلوه !
  12. يعني خلاص ماحد يقدر يصلحه ؟
  13. لا ماسويت + دخلت التيم مقدر احط اسم التيم لان كنق مخليه حاسب التيم
  14. مافي فايدةو ؟
  15. ادري انا كمان كانت تشتغل معي بس mta لا
  16. القسم الصحيح https://forum.multitheftauto.com/viewforum.php?f=119 والمشكلة اعتقد من لعبة GTA_SA امسحها ونزلها من جديد
  17. نفس المشكلة مايجي قام الاتصال وكدا
  18. قصدي انا دخلت العبة ودخلت سيرفر اي سيرفر ورحت قوقل شوي بيجي لاق شنيع لما تمشي يعلق ويمشي يعلق ويمشي حصلت معي امسحها ورجعها
  19. تقصد لاق ؟ اكيد في لعبة او اي فيديو يخليه في لاق
  20. مشكور كنق + مجنون فيك بس في مشكلة كـلـنت GUIEditor = { button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(230, 271, 255, 196, "لوحة اللاعب", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.button[1] = guiCreateButton(403, 425, 77, 36, "Call Police", false) GUIEditor.button[2] = guiCreateButton(234, 291, 77, 35, "Call Medic", false) GUIEditor.label[1] = guiCreateLabel(293, 393, 245, 17, "ملاحظة : كـل أسـبـوع يـتـم الـتـحديـث", false) end ) bindKey ( "F3" , "down" , function() if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then guiSetVisible ( GUIEditor.window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor.window[1] ) == false ) then guiSetVisible ( GUIEditor.window[1] ,true ) showCursor (true) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent ( "call", localPlayer, "Police" ) close ( source ) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent ( "call", localPlayer, "Medic" ) close ( source ) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent ( "call", localPlayer, "Mechanic" ) close ( source ) end end, false ) سيرفر addEvent ( "call", true ) addEventHandler ( "call", root, function ( teamName ) for _, v in ipairs ( getPlayersInTeam ( getTeamFromName ( teamName ) ) ) do outputChatBox ( teamName .. " قام بالإتصال بفريق الـ " .. getPlayerName ( client ), v, 255, 255, 255, true ) end end ) مايجي شيء في debugscript 3 ولما اضغط call Police وانا في تيم Police مايجي شيء في الشات + مشكور اخي كنق فكرتك حلوه فعلآ كنت بتعب وبدي كود فتح نافذة واغلاقها ومدري هذه مشكلة ولا اية موداللي يسوي نافذة هذه كل ماسوي زر واجي اسوي زر تاني يختفي يكون وار النافذة ولما احط كود اغلاق النافذة وفتحها النافذة تختفي الازرار لا الميتا "Mando" version="1.0" type="script" name="Call System"Call Police , Call Medic" /> .lua" type="client"> server">
  21. مشكور حبي بجرب
  22. كـلـنـت addEventHandler ('onClientGUIClick', root,function () if ( source == GUIEditor.button[1] ) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) triggerServerEvent ( 'call', localPlayer) end end ) سـيـرفـر addEvent( 'call', true ) addEventHandler( 'call', root,function() getPlayersInTeam ( source, getTeamFromName('Police' )) outputChatBox ( " قام بلاتصال بالشرطة".. name .. "", getRootElement(), 255, 255, 255, true ) end ) الوحة انا مسويه بس ماحب احطها بص تصحيح لو سمحت
×
×
  • Create New...