Jump to content

~>i'Mr.ZaId<~

Members
  • Posts

    57
  • Joined

  • Last visited

Everything posted by ~>i'Mr.ZaId<~

  1. قريت الدرس بس ما فهمت كثير وما عرفت وش هو البارتمر وياليت تقلي وش هو البارتمر في هاذا الكود وياليت تصلحهه لي لاهنت وبفهمك الكود يعني لو اللاعب ضغط على زر تصليح السيارة تتصلح سيارتهه اذا كان فيها ويقول له تم تصليح سيارتك بنجاح اما اذا ما كان بسيارة يقول له يجب انت تكون داخل سيارة وياليت تصلحهه
  2. السلام عليكم ورحمةة اللهه وبركاتهه ياشباب انا جالس اسوي مود وهو اول مود لي وطبعا هو سخيف بالسنبةة لكم بس في خطا بكود ياليت تصلحوه لي طبعا هو من كلينت GUIEditor_Button = {} GUIEditor_Label = {} wnd = guiCreateWindow (287,75,375,425,"by : ~>i'Mr.ZaId<~",false) guiSetAlpha(wnd,1) guiWindowSetMovable(wnd,false) guiWindowSetSizable(wnd,false) GUIEditor_Label[1] = guiCreateLabel(65,349,286,75,"بوآسطـةة :- ~>i'Mr.ZaId<~",false,wnd) guiLabelSetColor(GUIEditor_Label[1],0,255,30) guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Button[1] = guiCreateButton(80,70,200,71,"تــصلـيـح الســيآرة",false,wnd) function OpenWin() if guiGetVisible ( wnd ) then guiSetVisible ( wnd, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( wnd, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F5", "down", OpenWin) function fixcar1 (thePlayer) if isPedInVehicle(thePlayer) then fixVehicle(thePlayer) outputChatBox("تم تصليح سيارتك بنجاح",thePlayer,0,255,3) else outputChatBox("يجــب انت تكون داخل سيارة",thePlayer,0,255,3) end end addEventHandler("onClientGUIClick",GUIEditor_Button[1],fixcar1) وياليت تصلحووه لي
  3. الـسلآم عليــكمـ ورحمــةة اللهه وبــركآتهه يا شباب بغيت منكم طلب تعلموني وش ذي for _, v in ipairs in ipairs وربي معقدتني وش ذي؟ ياليت تفصلولي اياها بالتفصيل الممل وتقولون لي وين تنحط وبوش تستخدم وتحطون امثلةة لها , ويعطيكم الف عــآفـيةة
  4. االسلام عليكم يا شباب مدري اذا هاذ الكود صح ولا لا ياليت تشوفوه local groupName = '[saW]' tawa = createMarker(86.5,1341.8000488281,1087.3000488281,"cylinder",1,0,255,0,255) health = createMarker(1517.3000488281,567.40002441406,180.60000610352,"cylinder",2,0,0,0,0) aaa = createMarker(1520.5,592.20001220703,180.60000610352,"cylinder",2,0,0,0,0) setElementInterior ( tawa, 9 ) setElementDimension ( tawa, 5725 ) addEventHandler("onMarkerHit",tawa, function (thePlayer) if getPlayerTeam( thePlayer ) and getTeamName( getPlayerTeam( thePlayer ) ) == 'No Team' and getElementData ( thePlayer , "Group" ) == groupName then setElementInterior (thePlayer,0) setElementDimension ( thePlayer, 0) setElementPosition( thePlayer, 1515,581,183 ) end end ) addEventHandler("onMarkerHit",health, function (thePlayer) if getElementData( thePlayer, 'Group' ) == groupName and getPlayerTeam( thePlayer ) and getTeamName( getPlayerTeam( thePlayer ) ) == 'No Team' then if isPedInVehicle( thePlayer ) then return end setElementHealth( thePlayer, 100 ) setPedArmor( thePlayer, 100 ) end end ) addEventHandler("onMarkerHit",aaa, function (thePlayer) if getElementData( thePlayer, 'Group' ) == groupName and getPlayerTeam( thePlayer ) and getTeamName( getPlayerTeam( thePlayer ) ) == 'No Team' and not isPedInVehicle( thePlayer ) then setElementPosition( thePlayer, 84.890701293945, 1324.9881591797, 1083.859375 ) setElementInterior ( thePlayer, 9 ) setElementDimension ( thePlayer, 5725 ) end end )
  5. addEventHandler("onResourcesStart",resourceRoot, function () setTeamFriendlyFire ( getTeamFromName("Army") , false) end ) والله ما نفع
  6. آخوي الكؤد ما نفع
  7. صح؟ واذا خطآ لاهنت مثآل addEventHandler("onResourcesStart", function (thePlayer) setTeamFriendlyFire ( 'Army' , true ) end )
  8. السلام عليكمـ ورحمةة اللهه وبركآتهه يا شباب بغيت كود مدري وش اسمه بس بشرحه لكم مثلآ اعضاء فريق ارمي ما يقدرون يقتلون بعـًضَ يعني لو يطلقون على بعض ما يصير شي وعليكم السلآم ورحمةة اللهه وبركاته
  9. الــسلام عليكمـ ورحمةة اللهه وبركـآتهه يا شباب ياليت تشوفو وش مشكلة الكؤد ذآ gate = createObject(980,2673.5,596.79998779297,16.89999961853,0,0,0) marker = createMarker(2674.3000488281,599,14,"cylinder",10,255,255,255,0) createTeam("Army",255,0,0) bindKey("tap","down", function (thePlayer) if (isElementWithInMarker(thePlayer,marker)) then if (getPlayerTeam (thePlayer) == getTeamFromName("Army") ) then moveObject(gate,1000,2673.5,596.79998779297,22,0,0,0) else outputChatBox("This Army Base...",thePlayer,255,255,0,true) end end end ) function move2 (thePlayer) if (getPlayerTeam (thePlayer) == getTeamFromName("Army") ) then moveObject(gate,1000,2673.5,596.79998779297,16.89999961853,0,0,0) end end addEventHandler("onMarkerLeave",marker,move2)
  10. وقسم بالله انك كفو طول عمرك كفو احبك فديتك وشكرا يا احلى مبرمج^^ بدعيلك كل صـلآة ومشكوووور
  11. انا جديد بالبرمجة يعني شوي شوي علي والجداول اول مرة اسمع فيها وياليت تعدله لي الفنكشن الاول والثاني للانتقال بس لقروب ساو والفنكشن الثالث ماركر يعبي دم ودرع والرابع تصليح سيارة كل الفنكشات لقروب ساو مو قروب ACL قروب داتا مثل حرب العصابات ياريت تصلحه لي تكفى الله يخليك edit : تكفووؤن ردو : (
  12. السلام عليكم ورحمةة الله وبركاتهه يا شباب يا ريت تصلحولي هالاكواد والله وجع قلبي local marker50 = createMarker (1390.4000244141,566.40002441406,137.5,"arrow",2,20,245,9,255) local marker30 = createMarker (1375.4000244141,542.90002441406,5000.9,"arrow",2,29,255,0,255) local marker40 = createMarker (1390.8000488281,561.29998779297,135.19999694824,"cylinder",1,245,9,9,255) local marker60 = createMarker (1497.6999511719,580.5,133.30000305176,"cylinder",2,127,126,126,255) function teleport1 (thePlayer) if (getElementData(thePlayer,"Group") == "[saW]") then setElementPosition(thePlayer,1378.5999755859,544.70001220703,4999.3999023438) outputChatBox("تم نقلك",thePlayer,255,255,255,true) else outputChatBox("انت لست من عصابة سـآو",thePlayer,255,255,255,true) end end addEventHandler("onMarkerHit", marker50, teleport1) function teleport2 (thePlayer) if (getElementData(thePlayer,"Group") == "[saW]") then setElementPosition(thePlayer,1393.5,571.29998779297,136.19999694824) outputChatBox("تم نقلك",thePlayer,255,255,255,true) else outputChatBox("انت لست من عصـآبة سـآو",thePlayer,255,255,255,true) end end addEventHandler("onMarkerHit", marker30, teleport2) function health (thePlayer) if (getElementData(thePlayer,"Group") == "[saW]") then setPedArmor ( thePlayer,100 ) setElementHealth ( thePlayer,100 ) end end addEventHandler("onMarkerHit",health,marker40) function fixcar (theVehicle) if (getElementData(thePlayer,"Group") == "[saW]") then fixVehicle ( theVehicle ) end end addEventHandler("onMarkerHit",fixcar,marker60)
  13. ماتحققت لالمنت اللي لمس الماركر وش هو ســؤال ليش حطيت لوكال قبل كلمة ماركر فوق؟ وش الفرق ااذا حطيت لوكال او ما حطيت
  14. السلام عليكم ورحمةة اللهه وبركاتهه هاذ كودي marker = createMarker(1932, 530, 60.1,"cylinder",2,255,0,111,255,getRootElement()) function teleport (hitElement) setElementPosition(hitElement,1937,592,11) end addEventHandler("onMarkerHit", marker, teleport) ابي منكم يا شباب تخلوه لقروب معين مو تيم يعني الي يلمسه من القروب المحدد ينتقل واذا مو من القروب تجيه رسالة انه لازم يكون من القروب والقروب يا شباب نفس قروبات حرب العصآبات
  15. يا شباب لسا يقلي خطا والله وهاذ هو الكود function spawn (player) if getElementType(player) == 'player' then local Team = getPlayerTeam ( player ) if Team then if Team == getTeamFromName ( "SWAT" ) then spawnPlayer (player,1859,552,321 ) else spawnPlayer (player,1835,551,321 ) end end end end addEventHandler("onPlayerSpawn",root,spawn)
  16. صح الكود؟ addEventHandler("onPlayerSpawn", root, function (player) if ( getPlayerTeam ( player ) ) and ( getPlayerTeam ( player ) == getTeamFromName ( "SWAT" ) ) then spawnPlayer (player,1859,552,321 ) end end )
  17. السلامـ عليكمـ ورحمه ة الله وبركآآتــهه يا شباب بغيت كود سباون لفريق معين ياليت تقولون لي امثلة اســهل وشكرآ
  18. يب تآكدت سـيرفر ولكن الافضل تسويه كذآ, function spawn (player) if getElementType(player) == 'player' then if ( getPlayerTeam ( player ) ) and ( getPlayerTeam ( player ) == getTeamFromName ( "SWAT" ) ) then spawnPlayer (player,1859,552,321 ) else spawnPlayer (player,1835,551,321 ) end end end addEventHandler("onPlayerSpawn",root,spawn)
×
×
  • Create New...