Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. على م اعتقد مو for هي اصلا do واذا كانت for فـ هذي معلومه جديده بالنسبة لي وبالنسبة لـ طارح الموضوع كل افنت لها source خاص لها يعني لو دخلت على الافنت onPlayerJoin حتلاقي مكتوب فـ الويكي The source of this event : is the player who joined. يعني السورس هو الي دخل السيرفر او onPlayerCommand The source of this event is the player who tried to execute a command الـ source هو اللي كتب فـ اف 8 امر وغيره من الافنتات No it's for not do <3
  2. lol i think he just want to remove the image when the player die as what he say in page 1 . You're code wrong .
  3. Try this : local sx, sy = guiGetScreenSize ( ) local image = guiCreateStaticImage(0,0,sx,sy,"image.png",false) guiSetVisible ( image, false ) addEventHandler ( "onClientPlayerDamage", localPlayer, function ( ) local health = getElementHealth ( localPlayer ) outputChatBox ( "Your health is: ".. math.floor ( health ) .."%" ) if ( health <= 10 ) then guiSetVisible ( image, true ) end end ) addEventHandler ( "onClientPlayerWasted", localPlayer, function () guiSetVisible ( image, false ) end,false)
  4. addEventHandler("onClientGUIClick",root, function () local user = guiGetText(GUIEditor.edit[1]) local pass = guiGetText(GUIEditor.edit[2]) if ( source == GUIEditor_Button[1] ) then if string.len(user) > 0 and string.len(pass) > 0 then triggerServerEvent("onLogin",localPlayer,user,pass) end elseif ( source == GUIEditor_Button[2] ) then if string.len(user) > 0 and string.len(pass) > 0 then triggerServerEvent("onRegister",localPlayer,user,pass) end end end )
  5. اظن هالكود ما يتحرك الماركر مع السيارة لول نسيت الايفنت عدلتة ذذ انسخة ثانية # local x,y,z = getElementPosition(car7) local marker = createMarker ( x,y,z, "arrow", 4,255, 0, 0, 170 ) addEventHandler("onResourceStart",resourceRoot, function () attachElements (marker,car7,0,0,7) end )
  6. local x,y,z = getElementPosition(car7) local marker = createMarker ( x,y,z, "arrow", 4,255, 0, 0, 170 ) addEventHandler("onResourceStart",resourceRoot, function () attachElements (marker,car7,0,0,7) end )
  7. addEventHandler("onVehicleEnter",resourceRoot, function () attachElements (marker,car7,0,0,7) end )
  8. addEventHandler("onVehicleEnter",resourceRoot, function () attachElements (marker,car7,0,0,5) end )
  9. عزيزي تجي مع if = end function = end for = end مثال : function xxx() if isPedInVehicle(localPlayer) then outputChatBox("Veh") end end
  10. متى تجي player و متى تجي source هذي مخير فيها لان الـ source معرفة بالسيرفر اما الاعب player لازم تعرفها ذذ
  11. عادي يضبط لية لا # بس لازم يركب بـ نفسة او يغيرة لـ onVehicleEnter . local x,y,z = getElementPosition(car7) local marker = createMarker ( x,y,z, "arrow", 4,255, 0, 0, 170 ) addEventHandler("onVehicleEnter",root, function () attachElements (marker,car7) end ) root = راح تككون جميع المركبات بالنسبة لهذا الإيفنت اعذرني نسيت ومشكور ع التنبيةة ذذ local x,y,z = getElementPosition(car7) local marker = createMarker ( x,y,z, "arrow", 4,255, 0, 0, 170 ) addEventHandler("onVehicleEnter",resourceRoot, function () attachElements (marker,car7) end )
  12. لول يعني لو بتصحح كود بـ تجلس تفتح البرنامج ? وفية debugscript 3 ? يساعدك لو فيةة خطأ ذذ والى متى يعتمد على البرنامج؟ +1 + احنا نبي نتعلم المفاهيم الاسآسية عشآن نتعلم نبرمج... يعني لو عندك بيت ما تعرف تبنى الاركان -الزوايا- ما راح تكمل... لان البيت بيطيح على رآسك عشان كذآ ابي المفاهيم الاسآسية مثل player بعض المرات اشوفها بدل root او source... source = الاعب نفسة player = الاعب نفسة root = للكل #
  13. عارف بس لازم يتعلم # غالبا ماتجي مع if function for # المعروفةة بالنسبةة لي #
  14. والى متى يعتمد على البرنامج؟
  15. عادي يضبط لية لا # بس لازم يركب بـ نفسة او يغيرة لـ onVehicleEnter . local x,y,z = getElementPosition(car7) local marker = createMarker ( x,y,z, "arrow", 4,255, 0, 0, 170 ) addEventHandler("onVehicleEnter",root, function () attachElements (marker,car7) end )
  16. ججرب كذا بالسيرفر بالميتا : local x,y,z = getElementPosition(car7) local marker = createMarker ( x,y,z, "arrow", 4,255, 0, 0, 170 ) addEventHandler("onVehicleStartEnter",root, function () attachElements (marker,car7) end ) ولا تغير شيء بس ضيفة في ملف السيارة الخاصة وبسس #
  17. صح عليك الحين سوية بـ فنكشن : attachElements للسيارة الخاصة حقتك ذذ
×
×
  • Create New...