Jump to content

Kara

Members
  • Posts

    245
  • Joined

  • Last visited

Everything posted by Kara

  1. ملف الاعدادات حطه في الترتيب الاول في الميتا
  2. addEventHandler( 'onClientGUIClick', root, function() if (source == Enterbtn) then if guiGetEnabled ( Conf) == false then outputChatBox("خطا : جميع الازرار مقفلة",255,0,0) return end if guiGetEnabled ( Conf2) == false then outputChatBox("خطا : جميع الازرار مقفلة",255,0,0) return end guiSetVisible ( Window,false ) end end )
  3. @MoDeR2014 ماهذا الابداع مدديير كبير
  4. Kara

    مساعده

    @iPrestege ياعيني علي امثلتك يلي مالها حل ض1 بالنسبه لي طلبك 90% اكيد ناسي الانتريور 90% setElementInterior
  5. addEvent("NaiFMTA",true) addEventHandler("NaiFMTA",root, function() local accountName = getAccountName(getPlayerAccount(source)) if accountName then aclGroupAddObject (aclGetGroup("Admin"),"user."..accountName); -- غير اسم الرتبة outputChatBox ("تمت الترقية بنجاح",source,0,255,0,true) setTimer ( function() outputChatBox ( "انتي الوقت المحدد للرتبة" ) aclGroupRemoveObject (aclGetGroup("Admin"), "user."..accountName) end , 3600000, 1 ) end end )
  6. guiGetText triggerServerEvent getPlayerFromName getTeamFromName setPlayerTeam
  7. onGetPlayers يقولك انه حدث مب موجود giverankبس انت الحدث حقك مسويه في السيرفر تاكد من اسم التريقر في الكلينت نفسم السم الحدث في السيرفر
  8. ضيف المود لي قروب الادمن وسويله رستارت وشغل الديبق سكربت وقول شن يقولك لما تشتري الرتبه
  9. addEvent("giverank",true) addEventHandler("giverank",root,function() local accName = getAccountName(getPlayerAccount(source)) local PlayerMoney = getPlayerMoney(source) if PlayerMoney >= 1000 then takePlayerMoney(source,1000) setAccountData(accName, "Coins", (getAccountData(accName,"Coins")-1000))---------هذي بالكوينز مثلا---طبعا 4 بدلها باللي عايزو if accName then aclGroupAddObject (aclGetGroup("Admin"), "user."..accName) setTimer(function() aclGroupRemoveObject (aclGetGroup("Admin"), "user."..accName) end,6000*10,1)----------------هنا بدل 10 برقم الدقايق اللي تبي end end end )
  10. شيل فنكشن takePlayerMoney من الكلينت وحطه في السيرفر addEvent("giverank",true) addEventHandler("giverank",root,function() local accName = getPlayerAccount(source) local PlayerMoney = getPlayerMoney(source) if PlayerMoney >= 1000 then takePlayerMoney(source,1000) setAccountData(accName, "Coins", (getAccountData(accName,"Coins")-4))---------هذي بالكوينز مثلا---طبعا 4 بدلها باللي عايزو if accName then aclGroupAddObject (aclGetGroup("Admin"), "user."..accName) setTimer(function() aclGroupRemoveObject (aclGetGroup("Admin"), "user."..accName) end,6000*10,1)----------------هنا بدل 10 برقم الدقايق اللي تبي end end end )
  11. 'onClientGUIClick' triggerServerEvent takePlayerMoney aclGroupAddObject setTimer aclGroupRemoveObject
  12. local Dead = {}; local ID = {496, 587, 410,522,597,439,432,601,581,579,415,411} addEvent ( "createVehicleForPlayer", true ) addEventHandler("createVehicleForPlayer",root, function ( ) if Dead[source] then if isElement ( Dead[source] ) then destroyElement ( Dead[source] ) end local x, y, z = getElementPosition ( source ) local randomID = ID[math.random(#ID)] Dead[source] = createVehicle( ID, x + 3, y, z ) if ( Dead[source] ) then warpPedIntoVehicle ( source, Dead[source] ) outputChatBox("* [ تم اعطائك موتر ] .",source,math.random ( 150, 255 ),255,math.random ( 222, 255 ),true) end end end ) addEventHandler ( "onPlayerQuit", root, function ( ) if Dead[source] then if isElement ( Dead[source] ) then destroyElement ( Dead[source] ) end Dead[source] = nil end end ) addEventHandler ( "onVehicleExplode", resourceRoot, function ( ) destroyElement ( source ) end ) جررب
  13. اطرح الاف 5 وندمجها لك مع بعض
  14. @Ismaeel_finer الكود شغال 100% واللوحه تفتح بي اف1 وعلي كل حال قولي شن يقول لك في الديبق سكربت
  15. Kara

    تعديل

    setElementInterior ( hitPlayer , 3 )
  16. ---client GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Scrollbar = {} local x,y = guiGetScreenSize() Car = guiCreateWindow(x/2-136, y/2-144,272,288,"!! ~ [ مود فتح الابواب ] - #",false) GUIEditor_Scrollbar[1] = guiCreateScrollBar(24,49,225,17,true,false,Car) GUIEditor_Label[1] = guiCreateLabel(95,30,135,15,"=[ الكبوت ]=",false,Car) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(96,72,135,15,"=[ الباب 1 ]=",false,Car) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Scrollbar[2] = guiCreateScrollBar(24,91,225,17,true,false,Car) GUIEditor_Label[3] = guiCreateLabel(96,112,135,15,"=[ الباب 2 ]=",false,Car) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Scrollbar[3] = guiCreateScrollBar(24,130,225,17,true,false,Car) GUIEditor_Label[4] = guiCreateLabel(96,151,135,15,"=[ الباب 3 ]=",false,Car) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Scrollbar[4] = guiCreateScrollBar(24,168,225,17,true,false,Car) GUIEditor_Label[5] = guiCreateLabel(96,189,135,15,"=[ الباب 4 ]=",false,Car) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Scrollbar[5] = guiCreateScrollBar(24,206,225,17,true,false,Car) GUIEditor_Label[6] = guiCreateLabel(95,226,135,15,"=[ الشنطه ]=",false,Car) guiSetFont(GUIEditor_Label[6],"default-bold-small") GUIEditor_Scrollbar[6] = guiCreateScrollBar(24,243,225,17,true,false,Car) GUIEditor_Button[1] = guiCreateButton(23,265,230,15,"[ اغلاق ]",false,Car) guiSetFont(GUIEditor_Button[1],"default-small") guiWindowSetSizable ( Car, false ) setElementData(GUIEditor_Scrollbar[1], "Type", 0) setElementData(GUIEditor_Scrollbar[2], "Type", 2) setElementData(GUIEditor_Scrollbar[3], "Type", 3) setElementData(GUIEditor_Scrollbar[4], "Type", 4) setElementData(GUIEditor_Scrollbar[5], "Type", 5) setElementData(GUIEditor_Scrollbar[6], "Type", 1) guiSetVisible(Car, false) showCursor(false) function enableVehicleControl() if guiGetVisible(Car) == false then guiSetVisible(Car, true) showCursor(true) else guiSetVisible(Car, false) showCursor(false) end end bindKey("F1","down",enableVehicleControl) function closeButton() guiSetVisible(Car, false) showCursor(false) end addEventHandler ( "onClientGUIClick", GUIEditor_Button[1], closeButton, false ) function updateRatio(Scrolled) local position = guiScrollBarGetScrollPosition(Scrolled) local door = getElementData(Scrolled, "Type") triggerServerEvent("moveThis:~", getLocalPlayer(), door, position) end addEventHandler("onClientGUIScroll", getRootElement(), updateRatio) ---------server Closed = true Rotation = 0 addEvent("moveThis:~",true) addEventHandler("moveThis:~",root,function(Id) local Vehicle = getPedOccupiedVehicle(source) if ( Vehicle ) then if ( Closed == true ) then if ( isTimer(TimerOpen) ) then killTimer(TimerOpen) end if ( isTimer(TimerClosed) ) then killTimer(TimerClosed) end TimerOpen = setTimer(function() Rotation = tonumber(Rotation) + tonumber(1) setVehicleDoorOpenRatio(Vehicle,tonumber(Id),tonumber(Rotation)) if ( Rotation >= tonumber(100) ) then killTimer(TimerOpen) end end,1000,0) Closed = false else if ( isTimer(TimerOpen) ) then killTimer(TimerOpen) end if ( isTimer(TimerClosed) ) then killTimer(TimerClosed) end TimerClosed = setTimer(function() Rotation = tonumber(Rotation) - tonumber(1) setVehicleDoorOpenRatio(Vehicle,tonumber(Id),tonumber(Rotation)) if ( Rotation <= tonumber(0) ) then killTimer(TimerClosed) end end,1000,0) Closed = true end else outputChatBox("Need To Enter To Vehicle",source,255,0,0,true) end end)
  17. شغل الاجنت بي هذا الامر sudo su -c "screen -S ogp_agent -r" ogp_agent او سويله رستارت service ogp_agent restart
  18. الصراحه ماعمري جربت اسويها فكرتك ذي بس علي ما اعتقد انت تحتاج ذا fetchRemote
  19. عدل علي ملف الكلينت فنشكن فتح اللوحه سويه كذا bindKey ( key,'down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ); showCursor ( guiGetVisible ( GUIEditor.window[1] ) ); end ); keyوروح سوي ملف كلينت ثاني وعرف فيه ال key = 'F7' وخلي الملف الي معرف فيه الكي هوا الاول في الميتا
  20. GUIEditor = { button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0.43, 0.28, 0.16, 0.41, "=[ لوحه مسح آلشآت ]=", true) guiSetVisible(GUIEditor.window[1],false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFEAFF00") GUIEditor.label[1] = guiCreateLabel(0.07, 0.11, 0.88, 0.06, "# جميع آلحقوق تعود لـ مستر اموات", true, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 0, 254, 246) GUIEditor.label[2] = guiCreateLabel(0, 50, 210, 15, "_____________________________________", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(20, 114, 170, 59, "مسح آلشآآت !", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF4DFD00") GUIEditor.label[3] = guiCreateLabel(0, 173, 210, 15, "_____________________________________", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(10, 81, 231, 23, "* يجب يكون عند سبب لمسح الشات", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 252, 0, 0) GUIEditor.label[5] = guiCreateLabel(67, 188, 177, 29, "* ملاحظات *", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 0, 251, 231) GUIEditor.label[6] = guiCreateLabel(26, 207, 170, 20, "تضغظ علي الزر مرة واحدة فقط", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetColor(GUIEditor.label[6], 0, 29, 251) GUIEditor.label[7] = guiCreateLabel(15, 233, 190, 15, "كل 15 دقيقة سوف تضغظ مرة اخري", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetColor(GUIEditor.label[7], 171, 250, 0) GUIEditor.label[8] = guiCreateLabel(129, 291, 82, 15, "#مجتمع_آلعرب", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[8], "default-bold-small") guiLabelSetColor(GUIEditor.label[8], 249, 194, 0) GUIEditor.label[9] = guiCreateLabel(68, 296, 61, 15, "mtaarabs.com", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[9], "default-small") guiLabelSetColor(GUIEditor.label[9], 255, 254, 254) GUIEditor.label[10] = guiCreateLabel(45, 258, 181, 25, "* حيآكم آلله بآلسيرفر , !", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[10], "default-bold-small") guiLabelSetColor(GUIEditor.label[10], 0, 243, 131) end ) function guiAntiFlood(element, timer) if getElementType ( element ) == "gui-button" then local atimer = tonumber(timer) if atimer == nil or atimer == '' or not tonumber(atimer) then error("Bad Argument the Argument 2 must number") else end guiSetEnabled(element,false) setTimer(function() guiSetEnabled(element,true) end,tonumber(atimer),1) else error("Bad Argument 1 the element must button") end end addEventHandler( 'onClientMouseEnter',GUIEditor.button[1], function ( ) guiSetAlpha(source, 0.8); playSoundFrontEnd(3); end,false ); addEventHandler ( 'onClientGUIClick',root,function () if ( source == GUIEditor.button[1] ) then triggerServerEvent ( 'chat', localPlayer ) guiAntiFlood(GUIEditor.button[1],900000) end end ) bindKey ( 'F7','down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] ) ); showCursor ( guiGetVisible ( GUIEditor.window[1] ) ); end ); addEvent ( "chat", true ) addEventHandler("chat",root, function () local name = getPlayerName(source) for i = 1,20 do outputChatBox(" ") end outputChatBox ( "#FF0000INFO : #ffff00ADMIN #ff0000[#ffff00 ".. name .." #ff0000]#FFFF00 CLEARED THE CHAT", getRootElement(), 255, 255, 255, true ) end )
  21. GUIEditor.button[1] سطر 27 وسطر 29 استبدل ذا باسم الزر حقك
×
×
  • Create New...