Jump to content

0m4r

Members
  • Posts

    96
  • Joined

  • Last visited

Everything posted by 0m4r

  1. مافي فرق ذذ يمكن جالس يضغط ف اف 2 وهو موب داري
  2. ^^ الكود صحيح م فيه شيء
  3. viewtopic.php?f=160&t=77978&p=714734&hilit=%D8%B5%D9%88%D8%B1+%D8%A7%D9%84%D9%85%D8%A7%D8%B1%D9%83%D8%B1#p714734 قد سويت موضوع انت اول وردوا عليك
  4. موب معرف الماركر بالسطر 2 + رتبت له الكود
  5. local myMarker = createMarker(2495.52271, -1687.99548, 14.52963, 'cylinder', 2.0, 255, 0, 0, 150) setMarkerColor ( myMarker, 158, 0, 0, 215 ) GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(377, 125, 467, 621, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(9, 123, 448, 36, "الطيران بالسيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 353, 448, 36, "درع 100%", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(9, 307, 448, 36, "اعطاء دم 200%", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(9, 261, 448, 36, "أيقاف المشي على الماء", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(10, 215, 448, 36, "المشي على الماء", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(9, 169, 448, 36, "أيقاف الطيران بالسيارة", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(367, 577, 90, 34, "أغلاق", false, GUIEditor.window[1]) guiSetVisible( GUIEditor.window[1],false ) end ) addEventHandler ("onClientMarkerHit",myMarker, function (element) if (element) == localPlayer then guiSetVisible (GUIEditor.window[1],true) showCursor ( true ) end end,false ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) outputChatBox("تم تشغيل الطيران") elseif ( source == GUIEditor.button[2]) then triggerServerEvent ( "setarmor", localPlayer) outputChatBox ( "تم اعطائك درع" ) elseif ( source == GUIEditor.button[3] ) then triggerServerEvent ( "setahealth",localPlayer) outputChatBox ( "تم اعطائك دم 200" ) elseif ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) outputChatBox("تم أيقاف المشي فوق الماء") elseif ( source == GUIEditor.button[5] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) outputChatBox("تم تشغيل المشي على الماء") elseif ( source == GUIEditor.button[6] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) outputChatBox("تم أيقاف الطيران") elseif ( source == GUIEditor.button[7] ) then guiSetVisible ( GUIEditor.window[1], false) showCursor ( false ) end end )
  6. سويته ع السريع و مانتبهت عدلته
  7. كودك يوم يشغل اللوحة يشتغل الصوت ويوم يطفي اللوحة يشتغل صوت ثاني يعني بيصير لخبطة ف الافضل يستخدم ذا bindKey("f2","down", function () guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) if not isElement(sound) then sound = playSound("intro.mp3", false) else stopSound(sound) end end end)
  8. GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(351, 185, 638, 473, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(38, 40, 162, 82, "تشغيل طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(38, 351, 162, 82, "ايقاف المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(38, 245, 162, 82, "المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(38, 141, 162, 82, "ايقاف طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(223, 141, 162, 82, "اعطاء درع", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(223, 40, 162, 82, "اعطاء دم", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(543, 421, 85, 42, "أغلاق", false, GUIEditor.window[1]) end ) bindKey("f2",'down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[3] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[7] then guiSetVisible (wnd,false) showCursor (false) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) end end ) addEventHandler("onClientGUIClick",resourceRoot, function() if source == GUIEditor.button[7] then guiSetVisible(GUIEditor.window[1] , false) end end) addEventHandler("onClientResourceStart",resourceRoot , function() guiV = guiGetVisible (GUIEditor.window[1] ) if guiV == true then playSound("intro.mp3" ) end end) انت مستخدم حدث غلط جرب كذا GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(351, 185, 638, 473, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(38, 40, 162, 82, "تشغيل طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(38, 351, 162, 82, "ايقاف المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(38, 245, 162, 82, "المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(38, 141, 162, 82, "ايقاف طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(223, 141, 162, 82, "اعطاء درع", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(223, 40, 162, 82, "اعطاء دم", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(543, 421, 85, 42, "أغلاق", false, GUIEditor.window[1]) end ) bindKey("f2",'down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[3] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[7] then guiSetVisible (wnd,false) showCursor (false) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) end end ) addEventHandler("onClientGUIClick",resourceRoot, function() if source == GUIEditor.button[7] then guiSetVisible(GUIEditor.window[1] , false) end end) addEventHandler("onClientGUIClick",resourceRoot , function() guiV = guiGetVisible (GUIEditor.window[1] ) if guiV == true then playSound("intro.mp3" ) end end)
  9. لاهنت يوم تجي تحط كود استخدم واذا موب فاهم شف الشرح هنا viewtopic.php?f=160&t=46670
  10. يب يمديك تخلي الدم 200 خل السيرفر كذا addEvent("setahealth",true) addEventHandler("setahealth",root, function() setPedStat ( source, 24, 1000 ) setElementHealth ( source, 200 ) end) addEvent("setarmor",true) addEventHandler("setarmor",root, function( ) setPedArmor ( source, 100 ) end)
  11. شكلك حاط السيرفر والكلينت بملف واحد
  12. ^^ نفس اللي عطيته انا
  13. ياخي لاتشوف بس رح جرب انا جربته شغال
  14. Client : GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(351, 185, 638, 473, "لوحة التحكم", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(38, 40, 162, 82, "تشغيل طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(38, 351, 162, 82, "ايقاف المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(38, 245, 162, 82, "المشي على البحر", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(38, 141, 162, 82, "ايقاف طيران السيارة", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(223, 141, 162, 82, "اعطاء درع", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(223, 40, 162, 82, "اعطاء دم", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(543, 421, 85, 42, "أغلاق", false, GUIEditor.window[1]) end ) bindKey("f2",'down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1])) showCursor ( guiGetVisible ( GUIEditor.window[1])) end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then setWorldSpecialPropertyEnabled ( "aircars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[4] ) then setWorldSpecialPropertyEnabled ( "aircars", false ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[3] ) then setWorldSpecialPropertyEnabled ( "hovercars", true ) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function ( ) if ( source == GUIEditor.button[2] ) then setWorldSpecialPropertyEnabled ( "hovercars", false ) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor.button[7] then guiSetVisible (wnd,false) showCursor (false) end end ) addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == GUIEditor.button[5]) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == GUIEditor.button[6] ) then triggerServerEvent ( "setahealth",localPlayer) end end ) Server : addEvent("setahealth",true) addEventHandler("setahealth",root, function() setElementHealth ( source, 100 ) end) addEvent("setarmor",true) addEventHandler("setarmor",root, function( ) setPedArmor ( source, 100 ) end)
  15. لا غلط تصير كذا bindKey("f2",'down', function ( ) guiSetVisible ( GUIEditor.window[1],not guiGetVisible ( GUIEditor.window[1] )) showCursor ( guiGetVisible ( GUIEditor.window[1])) end ) بالنسبة للكود حق الدم والدرع اذا ضغطت على زر يحط دمك 100 وزر ثاني يحط درعك 100 Client : addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == اسم الزر حق الدرع) then triggerServerEvent ( "setarmor", localPlayer) elseif ( source == اسم الزر حق الدم) then triggerServerEvent ( "setahealth",localPlayer) end end ) Server: addEvent("setahealth",true) addEventHandler("setahealth",root, function() setElementHealth ( source, 100 ) end) addEvent("setarmor",true) addEventHandler("setarmor",root, function( ) setPedArmor ( source, 100 ) end) S
  16. كود اللوحة -- key = الزر -- wnd = اللوحة اللي تبيها تفتح bindKey("key",'down', function ( ) guiSetVisible ( wnd,not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end ) كود الدم setElementHealth كود الدرع setPedArmor
  17. addCommandHandler ("dshfsdkufrhsiugftsiegt", function ( thePlayer ) setElementDimension (thePlayer,55) setElementPosition ( thePlayer,x , y , z ) end )
  18. addCommandHandler setElementDimension
  19. Server: local Opens = { ["Serial"] = true, } addEvent ( "StartF", true ) addEventHandler ( "StartF", root, function () for i,PLAy in ipairs(getElementsByType("player")) do local serial = getPlayerSerial( PLAy ) if Opens[serial] then outputChatBox ("لقد تم تجميد الكل",PLAy,255,0,0,true) return end if isElementFrozen ( source ) then setElementFrozen ( source, false) else setElementFrozen ( source, true) triggerClientEvent ( "Freeze", source) end end end) addEvent ( "StopF", true ) addEventHandler ( "StopF", root, function () setElementFrozen( source,false) triggerClientEvent ( "unFreeze", source ) end ) Client : addEventHandler ( "onClientResourceStart", getRootElement(), function () outputChatBox ( "Freeze System Started !", 255, 0, 0, true) end ) MyWindow = guiCreateWindow ( ... ) Start = guiCreateButton ( ... ) Stop = guiCreateButton ( ... ) addEventHandler ( "onClientGUIClick", root, function () if ( source == Start ) then triggerServerEvent ( "StartF", localPlayer ) end end ) addEventHandler ( "onClientGUIClick", root, function () if ( source == Stop ) then triggerServerEvent ( "StopF", localPlayer ) end end ) addEvent ( "Freeze", true ) addEventHandler ( "Freeze", root, function () guiSetVisible ( MyWindow, true ) outputChatBox ( "لقد تم تجميدك !", 255, 0, 0, true) end ) addEvent ( "unFreeze", true ) addEventHandler ( "unFreeze", root, function () guiSetVisible ( MyWindow, false ) outputChatBox ( "لقد تم فك تجميدك !", 0, 255, 0, true) end )
  20. اللوحة تسويها من مود اسمه guieditor
  21. marker1 = { {x,y,z}, {x,y,z}, {x,y,z} } addEventHandler("onResourceStart",resourceRoot, function () for k,v in ipairs(marker1) do marker = createMarker(v[1],v[2],v[3],"cylinder",1,255,0,0,150) end end) vehicle = {} addEventHandler("onMarkerHit",resourceRoot, function ( element ) if getElementType( element ) == "player" and not isPedInVehicle ( element ) then if isElement(vehicle[element]) then destroyElement(vehicle[element]) vehicle[element] = nil end local x,y,z = getElementPosition ( element ) vehicle[element] = createVehicle(411,x,y,z) warpPedIntoVehicle ( element, vehicle[element] ) end end ) ولا تزعل
  22. marker1 = createMarker ( x,y,z,"cylinder", 1, 255, 0, 0, 150 ) marker2 = createMarker ( x,y,z,"cylinder", 1, 255, 0, 0, 150 ) local vehicle = {} addEventHandler("onMarkerHit",marker1, function( element ) if getElementType( element ) == "player" and not isPedInVehicle ( element ) then if isElement(vehicle[element]) then destroyElement(vehicle[element]) vehicle[element] = nil end local x,y,z = getElementPosition ( element ) vehicle[element] = createVehicle(411,x,y,z) warpPedIntoVehicle ( element, vehicle[element] ) end end ) addEventHandler("onMarkerHit",marker2, function( element ) if getElementType( element ) == "player" and not isPedInVehicle ( element ) then if isElement(vehicle[element]) then destroyElement(vehicle[element]) vehicle[element] = nil end local x,y,z = getElementPosition ( element ) vehicle[element] = createVehicle(411,x,y,z) warpPedIntoVehicle ( element, vehicle[element] ) end end )
×
×
  • Create New...