Jump to content

KING-_-HOHO

Members
  • Posts

    211
  • Joined

  • Last visited

Everything posted by KING-_-HOHO

  1. entered + player آلمفروض تحط بدل source = آلمصدر لآن آلسورس هو آلمصدر في آلإيفنت أو آلحدث بآلعربي يعني حدث onVehicleEnter Vehicle آلسورس فيه وهكذآ ------------------- addEventHandler("onPlayerSpawn", root, -- حدث آذآ آللآعب آنتقل function() -- وظيفة آلحدث if getTeamName(getPlayerTeam(source)) == "No Team" and getElementData(source, "gang") == "SKULLS" then -- تحقق آذآ كآن SKULLS آلسورس آو آللآعب في تيم آسمه نو تيم وتحقق آذآ كآن بفروب آسمه setElementPosition(source, 140.40361, 1370.79529, 1083.86633) --نقل آلسورس آلى مكآن معين setElementInterior(source, 5 ) -- وضع آنترو للسورس setElementDimension(source, 0 ) -- وضع عآلم وهمي للسورس setElementHealth(source, 200 ) -- إعطآء آللآعب دم setPedStat(thePlayer, 24, 999) -- نضع قيمة لدم آللآعب كي تجعل دم آللآعب كآمل 200 setElementModel(source, 30 ) -- إعطآء آللآعب شخصية setPedArmor ( source, 100 ) --إعطآء آللآعب درع end -- نهآية آلتحقق end --نهآية آلوظيفة ) --قوس إغلآق آلحدث
  2. لا يا بطل كان فيه واختفى يعني الشركة بطلت تدعمه ؟ يمكن ليش لآ -- آو مميزآت آلويندوز عندك مآتسمح
  3. آيه يروح لهآ آذآ مآت -- زر رقم 1 يخفي آللوحة منتهين منه زر رقم 2 هذي آحدآثيآته spawnPlayer(source, 297.23212,191.4963,1007.17188) setElementRotation(source, 0,0,91.98) زر رقم 3 هذي آحدآثيآته spawnPlayer(source, -1615.38806,684.90344,7.18750) setElementRotation(source, 0,0,91.98)
  4. ذي آزرآرهـ -- Client-Side addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if ( source == GUIEditor.button[1] ) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) elseif ( source == GUIEditor.button[2] ) then setElementData( localPlayer, "teleport1", true) guiSetVisible(GUIEditor.window[1], false) showCursor(false) elseif ( source == GUIEditor.button[3]) then setElementData( localPlayer, "teleport2", true) guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end )
  5. يبي آذآ ضغط على زر ينتظر إلى آن يموت وينتقل إلى مكآن محدد بعد 3 ثوآني
  6. جرب -- Client-Side addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if ( source == GUIEditor.button[1] ) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) elseif ( source == GUIEditor.button[2] ) then setElementData( localPlayer, "teleport1", true) guiSetVisible(GUIEditor.window[1], false) showCursor(false) elseif ( source == GUIEditor.button[3]) then setElementData( localPlayer, "teleport2", true) guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end ) addEventHandler("onClientPlayerWasted", localPlayer, function () if getElementData(localPlayer, "teleport1", true) then triggerServerEvent("spawnplayer1", localPlayer) setElementData ( localPlayer, "teleport1", false) elseif getElementData(localPlayer, "teleport2", true) then triggerServerEvent("spawnplayer2", localPlayer) setElementData ( localPlayer, "teleport2", false) end end ) -- Server-Side addEvent("spawnplayer1", true) addEventHandler("spawnplayer1", root, function () setTimer(function () spawnPlayer(source, 297.23212,191.4963,1007.17188) setElementRotation(source, 0,0,91.98) setElementInterior ( source, 3 ) setElementDimension ( source, 0 ) end, 3000, 1) end ) addEvent("spawnplayer2", true) addEventHandler("spawnplayer2", root, function () setTimer(function () spawnPlayer(source, -1615.38806,684.90344,7.18750) setElementRotation(source, 0,0,91.98) end, 3000, 1) end )
  7. آنآ آشهد آن آلحشيش مآ يزبط آلى آخر آلليل
  8. علشآن هو بيخفي آللوحة exports.SDT_GUI:dxDestroyElement(userpanel) userpanel و dx معرفه في فنكشن userpanel وليست معرفة في فنكشن إظهآر وإخفآء يعني علشآن نربط بين آلفنكشنآت
  9. شلون آسوي جدول لفنكشنات ماهي باللعبه آصلن ?? مآينفع يسير كذآ Upanel = { } bindKey("F1","down", function() if toggeled then toggeled = false showCursor ( false ) exports.SDT_GUI:dxDestroyElements(Upanel[getLocalPlayer()]) else toggeled = true end end) function dx() if toggeled then Upanel[getLocalPlayer()] = exports.SDT_GUI:dxCreateStaticImage(1750,0,180,1080,"images/background.png",0,parent) end end addEventHandler("onClientRender",getRootElement(), dx)
  10. #بعد آلتحديث then نآقص elseif getElementData(localPlayer, "teleport2", true)
  11. آنآ كنت آقصد كلمة آلمنت مو الآلمنت local element = getPedOccupiedVehicle ( getLocalPlayer () ) مآشفت آللوكآل آلمنت زين فحسبته حط بدل آلسورس آلآلمنت آللي مسويله لوكآل setElementInterior ( element, 3 ) setElementDimension ( element, 0 )
  12. لآكن كيف يكون معه سيآرهـ وهو ميت
  13. كودكـ يسير كذآ addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if ( source == GUIEditor.button[1] ) then guiSetVisible(GUIEditor.window[1], false) showCursor(false) elseif ( source == GUIEditor.button[2] ) then outputChatBox("سيتم نقلك بعد آن تموت", 0,255,0,true) setElementData(getLocalPlayer (), "spawnA", true) guiSetVisible(GUIEditor.window[1], false) showCursor(false) elseif ( source == GUIEditor.button[3]) then outputChatBox("سيتم نقلك بعد آن تموت", 0,255,0,true) setElementData(getLocalPlayer (), "spawnB", true) guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end ) function spawn ( ) if getElementData(source, "spawnA") then setElementPosition(source,297.23212,191.4963,1007.17188) setElementInterior (source, 3 ) setElementDimension (source, 0 ) setPedRotation(source, 91.98) setElementData(source, "spawnA", false) elseif getElementData(source, "spawnB") then setElementPosition(source, -1615.38806,684.90344,7.18750) setPedRotation(source, 91.98) setElementData(source, "spawnB", false) end end addEventHandler ( "onClientPlayerSpawn", getLocalPlayer(), spawn)
  14. آغلآط كثير منهآ if getElementData ( localPlayer, "teleport1", true) then آلمفروض يكون كذآ if getElementData ( localPlayer, "teleport1") then لآنك آنت تجيب آلدآتا var getElementData ( element theElement, string key [, inherit = true] ) وليس تحطهآ setElementInterior ( element, 3 ) setElementDimension ( element, 0 ) guiSetVisible(GUIEditor.window[1], false) showCursor(false) من وين جبت آلمنت حط سورس + ليه تزيل آللوحة آصلآ هي مخفية + آلمفروض تحط آلديم وآلآنت في آلسيرفر مع آلسبآون بآلتوفيق
  15. لآ لآ آللي مخرب عليه آلشغل setElementPosition وبعدين انقل اللاعب بإستخدام لآنه ميت عنددهـ طريقتين آمآ يسوي تريقر من كلنت آلى سيرفر ويحط بآلسيرفر spawnPlayer آو تغير آلحدث وتخليه onClientPlayerSpawn وآلثآنية آسهل
  16. كيف تبي تسوي exports.SDT_GUI:dxDestroyElement(userpanel) و userpanel دآخل فنكشن ثآني؟؟ سوي لهآ جدول وشوف
  17. جرب addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if ( source == GUIEditor.button[1] ) then local element = getPedOccupiedVehicle ( getLocalPlayer ( ) ) or getLocalPlayer ( ) guiSetVisible(GUIEditor.window[1], false) showCursor(false) elseif ( source == GUIEditor.button[2] ) then outputChatBox("سيتم نقلك بعد آن تموت", 0,255,0,true) setElementData(getLocalPlayer (), "spawn", true) guiSetVisible(GUIEditor.window[1], false) showCursor(false) elseif ( source == GUIEditor.button[3]) then local element = getPedOccupiedVehicle ( getLocalPlayer ( ) ) or getLocalPlayer ( ) setElementPosition(element,-1615.38806,684.90344,7.18750) setPedRotation(element, 91.98) guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end ) function wastedspawn ( ) if getElementData(source, "spawn") == "true" then setElementPosition(source,297.23212,191.4963,1007.17188) setElementInterior (source, 3 ) setElementDimension (source, 0 ) setPedRotation(source, 91.98) setElementData(source, "spawn", false) end end addEventHandler ( "onClientPlayerWasted", getLocalPlayer(), wastedspawn)
  18. كذآ veh = { } addEvent ("getCaraaa", true) addEventHandler ("getCaraaa", getRootElement(), function(car) if veh[source] and isElement( veh[source] ) then destroyElement( veh[source] ) veh[source] = nil end local x,y,z = getElementPosition(source) veh[source] = createVehicle(car, x,y-7,z ,0, 0,80) setVehicleColor(veh[source], 255, 255, 255) warpPedIntoVehicle(source, veh[source]) end )
  19. local l, w = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((l - 250) / 2, (w - 300) / 2, 215, 348, "Vehicle Q.9", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1],false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "NormalTextColour", "FF0000FE") GUIEditor.gridlist[1] = guiCreateGridList(9, 10, 197, 280, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "Vehicle", 0.7) GUIEditor.button[1] = guiCreateButton(9, 301, 89, 37, "أختيآر", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF0000FE") GUIEditor.button[2] = guiCreateButton(118, 301, 88, 37, "X", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF0000FE") for i,v in ipairs (cars) do local carName = getVehicleNameFromModel (v[1]) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1], row, 1, i.."-", false, true) guiGridListSetItemText (GUIEditor.gridlist[1], row, 2, v[2], false, true) guiGridListSetItemData(GUIEditor.gridlist[1], row, 2, v[1]) end addEvent ("openMeanaaa", true) function openMean () if (getLocalPlayer() == source) then guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end addEventHandler ("openMeanaaa", getRootElement(), openMean) addEvent ("closeOpenMeanaaa", true) function closeOpenMean () if (getLocalPlayer() == source) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end addEventHandler ("closeOpenMeanaaa", getRootElement(), closeOpenMean) addEventHandler ("onClientGUIClick", GUIEditor.button[2], function (button, state, absoluteX, absoluteYe) guiSetVisible(GUIEditor.window[1],false) showCursor(false) end) function trigger () if (guiGridListGetSelectedItem (GUIEditor.gridlist[1])) then local car = guiGridListGetItemData (GUIEditor.gridlist[1], guiGridListGetSelectedItem (GUIEditor.gridlist[1]), 2) if car == "" or car == nil then outputChatBox( "please selected car from list.",255,0,0,true ) return end triggerServerEvent ("getCaraaa", getLocalPlayer(), car) guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end addEventHandler ("onClientGUIClick", GUIEditor.button[1], function () trigger(getLocalPlayer()) end) addEventHandler ("onClientGUIDoubleClick", GUIEditor.gridlist[1], function () trigger(getLocalPlayer()) end) نآسي guiGridListSetItemData(GUIEditor.gridlist[1], row, 2, v[1])
  20. جرب addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if ( source == GUIEditor.button[1] ) then local element = getPedOccupiedVehicle ( getLocalPlayer ( ) ) or getLocalPlayer ( ) guiSetVisible(GUIEditor.window[1], false) showCursor(false) elseif ( source == GUIEditor.button[2] ) then outputChatBox("سيتم نقلك بعد آن تموت", 0,255,0,true) setElementData(getLocalPlayer (), "spawn", true) guiSetVisible(GUIEditor.window[1], false) showCursor(false) elseif ( source == GUIEditor.button[3]) then local element = getPedOccupiedVehicle ( getLocalPlayer ( ) ) or getLocalPlayer ( ) setElementPosition(element,-1615.38806,684.90344,7.18750) setPedRotation(element, 91.98) guiSetVisible(GUIEditor.window[1], false) showCursor(false) end end ) function wastedspawn ( ) if getElementData(source, "spawn") then setElementPosition(source,297.23212,191.4963,1007.17188) setElementInterior (source, 3 ) setElementDimension (source, 0 ) setPedRotation(source, 91.98) setElementData(source, "spawn", false) end end addEventHandler ( "onClientPlayerWasted", getLocalPlayer(), wastedspawn)
  21. find يقدر يستخدم ذآ بدآل addEventHandler("onPlayerChat" , root, function( msg ) -- وظيفة وداخل آلقوسين آرقمنت آلرسآلة if tostring(msg) == "حرب" then -- بدآل آلبحث نحط آذآ كآنت آلرسآلة حرب ينفله مثل مآ قآل ذآ بست setElementPosition( source, x, y, z ) -- x,y,z حط الاحداثيات الي ينتقل لها بدال end -- نهآية آلتحقق end -- نهآية آلوظيفة ) -- قوس إغلآق آلحدث
×
×
  • Create New...