Jump to content

iMr ~ MnHmAr

Members
  • Posts

    555
  • Joined

  • Last visited

Everything posted by iMr ~ MnHmAr

  1. انا الان مسوي مود لوحة تحكم في زر لما اضربه يخفي الشات ولما اضرب مره ثاني يرجع الشات بس لما اضرب الزر حق اخفاء الشات يخفيه بس لما اضربه مره ثانيه مايرجعه ظآهر و ابي كمان كوداو فانكشن يخفي الـ Hud حق الردار و السلاح ^^ كود الشات addEventHandler("onClientGUIClick",resourceRoot, function() if source == GUIEditor.button[1] then showChat(false) else if showChat == false then showChat(true) end end end )
  2. جرب شيل or 0 + اذا زبط وش يطلع لك في الدي بوق
  3. getElementAlpha ع مضن راح تحتآجه
  4. اخي شآطح انا لما اضيف احد لـ قروب الادمن مايضيفه في القائمه ولو مثل في قائمة النقاط فيه 5 لاعبين لسع ما اديتهم نقاط لو ادي واحد منهم نقاط و اقفل النافذه و ارجع افتح ما القي الا الي زودته نقاط و الباقي يرحون
  5. القديم افضل بكثيرر في الاستخدام و في التركيز هذا ابيض وربي تقعد عليه 20 دقيقه متواصل ان عيونك تنظر
  6. نورت المنتدى وانا اقول ليه المنتدى منور و ان شاء الله ربي يوفقك في سيرفرك
  7. فهمتك والله آنك كفو و عرفت اشياء ما كنت اعرفها شكرا و الف شكر لك تسلم على كل حاجه وانا بحاول اعمل مودآت بي قآعدة بيانات و بطور قدرتي في قاعدة البيانات ان شاء الله
  8. ممشكور آخوي شآطح لكن آخي هل arg3 هي guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1]) ولا انا غلطان ض1 وكمان arg, arg2 وش هي ض1 لاني انت معرفه غير عن التقريت
  9. مشكور اخوي لكن اخوي انا سويت قاعدة بيانات متى استرجع رو و اضيف و كيف اخلي تنحفط ممكن تشرح لي كيف اسويها مثل : عند فنكشن كذا تضيف استرجع روم وكذا وآسف على فهمتك غلط لكن والله سويتهم قبل تقولي بتقريت واحد مازبطو فا استغربت اسف ي شاطح على كل شي
  10. v1 = 0 addEvent("getAccounts", true) addEventHandler("getAccounts", root, function( groups ) for k,v in ipairs ( groups ) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v,false,false) guiGridListSetItemText(GUIEditor.gridlist[1],row,2,'0',false,false) end local back1 = guiGetText(GUIEditor.edit[1]) if (back1) ~= "" then local v1 = v1 + back1 nget = guiGridListSetItemText(GUIEditor.gridlist[1],row,2,'0',false,false) triggerServerEvent("Nget1", localPlayer, back1, v1, nget) end end ) addEvent("Nget2", true) addEventHandler("Nget2", root, function (back1,v1,nget) nget = guiGridListSetItemText(GUIEditor.gridlist[1],row,2,'v1',false,false) end ) --Server function getAccountsFromGroup() local t = {} if #getAccounts() ~= 0 then for k,v in ipairs ( getAccounts() ) do if isObjectInACLGroup( 'user.'..getAccountName( v ),aclGetGroup('Admin') ) then table.insert( t, getAccountName ( v ) ) end end end return t end addEvent("getAccount1", true) addEventHandler("getAccount1", root, function ( ) triggerClientEvent( root, "getAccounts", root, getAccountsFromGroup() ) end ) addEvent("Nget1", true) addEventHandler("Nget1", root, function (back1,v1,nget) triggerClientEvent(root ,"Nget2", root, back1, v1,nget) end ) كذا
  11. function JetpackGive ( ) local hasJetPack = doesPedHaveJetPack ( source ) outputChatBox ("[VIP]You are got or deleted jetpack",source,255,255,0,false) if ( hasJetPack ) then removePedJetPack ( source ) else givePedJetPack ( source ) end end addEvent( "onJetpack", true ) addEventHandler( "onJetpack", getRootElement(), JetpackGive ) كان فيه آند زآيده في سطر -10- بي ملف السيرفر
  12. addEventHandler ("onClientResourceStart",resourceRoot,function() triggerServerEvent("getAccount1", localPlayer) end ) -- Client Side # addEvent("getAccounts", true) addEventHandler("getAccounts", root, function( groups ) for k,v in ipairs ( groups ) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v,false,false) guiGridListSetItemText(GUIEditor.gridlist[1],row,2,'0',false,false) end end ) bindKey("n","down", function () guiSetVisible(GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) v1 = 0 addEventHandler ( "onClientGUIClick", root, function() if source == GUIEditor.button[1] then if ( guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 ) then local back1 = guiGetText(GUIEditor.edit[1]) if (back1) ~= "" then local v1 = v1 + back1 triggerServerEvent("Nget1", localPlayer, back1, v1) end end end end ) addEvent("Nget2", true) addEventHandler("Nget2", root, function (back1,v1) local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v1,false,false) end ) function getAccountsFromGroup() local t = {} if #getAccounts() ~= 0 then for k,v in ipairs ( getAccounts() ) do if isObjectInACLGroup( 'user.'..getAccountName( v ),aclGetGroup('Admin') ) then table.insert( t, getAccountName ( v ) ) end end end return t end addEvent("getAccount1", true) addEventHandler("getAccount1", root, function ( ) triggerClientEvent( root, "getAccounts", root, getAccountsFromGroup() ) end ) addEvent("Nget1", true) addEventHandler("Nget1", root, function (back1,v1) triggerClientEvent(root ,"Nget2", root, back1, v1) end ) المود هو في قريد ليست وفيه كولمن 2 واحد - للحسابات رتبه معينه انا حاطه و الكولمن الثاني نقآط الاعب وذاا ابي ازود نقآط اكتب في الاديت عدد النقآط و اضرب بوتن و ترسل له لكن هنا يجي رو جديد تحت مايجي قدام حساب الاعب المحدد
  13. local PlayerSerial = { ['----------------------------------------------'] = true, ['----------------------------------------------'] = true, [''] = true, [''] = true, [''] = true, [''] = true, } addEventHandler("onPlayerLogin", root, function ( _,acc ) if isObjectInACLGroup ("user."..getAccountName( acc ), aclGetGroup ( "Console" ) ) then if getPlayerSerial ( source ) ~= PlayerSerial then banPlayer ( source,nil,nil,true,root,"" ) end end end ) انا مسوي اذا احد رقى نفسه كونسل و سرياله غير موجود في الجدول يطير باند لكن خويي سرياله موجود في الجدول وانا موجود لما اجي ارقي خويي و خويي يسجل يصك خويي باند بس سرياله موجود في الجدول
  14. addEventHandler ( "onClientGUIClick", root, function() if ( source == GUIEditor.button[2] ) then if guiGridListGetSelectedItem(GUIEditor.gridlist[1]) ~= -1 then local player = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) local message = guiGetText(GUIEditor.edit[2]) if trim(message) ~= "" then outputChatBox ( "You've new pm message from : ".. getPlayerName ( localPlayer )) local text = trim( guiGetText ( GUIEditor.memo [ 2 ] ) ) ~= '' and guiGetText(GUIEditor.memo[2]).."\n".. getPlayerName ( localPlayer ):gsub("#%x%x%x%x%x%x", "").." : "..message or getPlayerName ( localPlayer ):gsub("#%x%x%x%x%x%x", "").." : "..message guiSetText(GUIEditor.memo[ 2 ], text ) guiSetVisible ( GUIEditor.window[2], true ) triggerServerEvent("chat", localPlayer, message, player) end end elseif ( source == GUIEditor.gridlist [ 1 ] ) then if guiGridListGetSelectedItem(GUIEditor.gridlist[1]) ~= -1 then guiSetVisible ( GUIEditor.window[2], true ) end end end ) function trim(s) -- from [url=http://lua-users.org/wiki/StringTrim]http://lua-users.org/wiki/StringTrim[/url] return s:match "^%s*(.-)%s*$" end addEvent("chat1", true) addEventHandler("chat1", root, function (message , name) outputChatBox ( "You've new pm message from : "..name) local text = trim( guiGetText ( GUIEditor.memo [ 2 ] ) ) ~= '' and guiGetText(GUIEditor.memo[2]).."\n"..name:gsub("#%x%x%x%x%x%x", "").." : "..message or name:gsub("#%x%x%x%x%x%x", "").." : "..message guiSetText(GUIEditor.memo[ 2 ], text ) guiSetVisible كذا
  15. طيب انا لما ارسله يشوفه بس هو انا مااشوفها ليه انا اشوفه ماتجي ف يالميمو لكن هو يشوفها ض1
  16. الان انا ضربت على اسمه و رسلت له المفروض تظهر له لوحة الدردشه عنده مو لزم يحدد علي لان انا الي رسلت له موب هو صح؟ ولا لا
  17. يجي الكلام بي الشات لكن ماتروح له الرساله
  18. ردو يا مبرمجين انا محتاجج مود الدردشه ضوري ي شآطح مو شغال ارسل ل خويي مايرسل له ليه غريبه
  19. طيب بعد ما ارسله وش اسوي احط متغير و ازيده + اخي مود الدردشه الخاصه الا الان مايششتغل ماياقدر ارسل لخويي
  20. طيب اخي لو ابي اضيف نقطه اسوي تقريتلما يضرب الزر يسوي تقريت؟ ولاكيف؟ واالله اخي مشكور جآري التجربه
  21. function getAccountsFromGroup() local t = {} if #getAccounts() ~= 0 then for k,v in ipairs ( getAccounts() ) do if isObjectInACLGroup( 'user.'..getAccountName( v ),aclGetGroup('msolserver') ) then table.insert( t, getAccountName ( v ) ) end end end return t end addEvent("getAccount1", true) addEventHandler("getAccount1", root, function getAccountsFromGroup() v1 = 0 triggerClientEvent(root,"getAccounts",root,getAccountsFromGroup,v1) end ) addEvent("getAccounts", true) addEventHandler("getAccounts", root, function(acc,acc1,account,v1) for k,v in ipairs ( getAccountsFromGroup () ) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v,false,false) guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v1,false,false) end )
  22. يغلق او حذف الموضوع
  23. GUIEditor = { gridlist = {}, button = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(223, 65, 397, 401, "لوحة مراقبة رتبت المسوؤلينء", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.gridlist[1] = guiCreateGridList(9, 36, 379, 285, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "accountname", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "nget", 0.5) GUIEditor.button[1] = guiCreateButton(49, 327, 135, 37, "آضآفة نقطه", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(205, 327, 135, 37, "سحب نقطه", false, GUIEditor.window[1]) addEventHandler ("onClientResourceStart",resourceRoot function() triggerServerEvent("getAccount1", localPlayer) end ) addEvent("getAccounts", true) addEventHandler("getAccounts", root, function(acc,acc1,account,v1) local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,1,account),false,false) guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v1),false,false) end ) addEventHandler('onClientGUIClick',root, function () if source == button then -- هنا لو ضربنا يزيد النقاطه الي بي الاديت بوكس مكتوبه local v11 = guiGetText(GUIEditor.edit[1]) --- v1 = v1 + v11 triggerServerEvent("getAccount3", localPlayer) ---هنا نرسل القيم سيرفر و نحطه في قواعد بيانات صح؟ elseif source == button2 then --- هنا لو ضربنا يسحب منه النقاطه المكتوبه في الاديت بوكس local v12 = guiGetText(GUIEditor.edit[2]) v1 = v1 - v12 triggerServerEvent("getAccount4", localPlayer,v1) ---هنا نرسل القيم سيرفر و نحطه في قواعد بيانات صح؟ end end ) bl = {} addEvent("getAccount1", true) addEventHandler("getAccount1", root, function() for k,v in ipairs ( getElementsByType("player") ) do local account = getAccounts (v) if #account ~= 0 then local acc = getPlayerAccount(source) if not isGuestAccount ( acc ) then local acc1 = getAccountName(acc) if isObjectInACLGroup ( "user." .. acc1, aclGetGroup ( "Admin" ) ) then table.insert(bl,v) v1 = 0 triggerClientEvent(root,"getAccounts",root,acc,acc1,account,v1) end end end end end ) قواعد البيانات لسع ماضفتهم لكن الطريقه صح الي فوق ولا لا
  24. addEventHandler ("onClientResourceStart",resourceRoot function() triggerServerEvent("getAccount1", localPlayer) end ) كذا التقريت الجداول ليه استخدمه
×
×
  • Create New...