Jump to content

mohamed hussein

Members
  • Posts

    92
  • Joined

  • Last visited

Everything posted by mohamed hussein

  1. انا عاوز اعرف الاكسبورت هو ده قربت قوي بس قلي اعملو في مود لوحدة ؟ @Killer Project addEventHandler("onPlayerJoin",getRootElement(), function () setElementData(source,"afk_state","back") setElementData(source,"HideState","disabled") end) addEventHandler( "onResourceStart", getResourceRootElement(getThisResource()), function () for i,v in pairs (getElementsByType("player")) do setElementData(v,"afk_state","back") setElementData(v,"HideState","disabled") end end) addCommandHandler("afk", function (thePlayer) if getElementData(thePlayer,"afk_state") == "back" then triggerClientEvent(thePlayer,"god_mode",thePlayer) setPedFrozen(thePlayer,true) setPlayerNametagText (thePlayer, "|AFK|" .. getPlayerName (thePlayer)) outputChatBox(getPlayerName(thePlayer).." is AFK!",getRootElement(),255,50,0) setElementData(thePlayer,"afk_state","afk") if getPedOccupiedVehicle(thePlayer) then fixVehicle(getPedOccupiedVehicle(thePlayer),true) setVehicleFrozen(getPedOccupiedVehicle(thePlayer),true) setVehicleDamageProof(getPedOccupiedVehicle(thePlayer),true) end elseif getElementData(thePlayer,"afk_state") == "afk" then setElementData(thePlayer,"afk_state","back") triggerClientEvent(thePlayer,"disable_god_mode",thePlayer) setPedFrozen(thePlayer,false) setPlayerNametagText (thePlayer, "" .. getPlayerName (thePlayer)) outputChatBox(getPlayerName(thePlayer).." is back!",getRootElement(),0,255,0) if getPedOccupiedVehicle(thePlayer) then setVehicleFrozen(getPedOccupiedVehicle(thePlayer),false) setVehicleDamageProof(getPedOccupiedVehicle(thePlayer),false) end end end) اهو المود
  2. بمود لوحدو في سيرفرات الرول بلاي
  3. ما شفت اللي كان في طاره بس هو انت تدوس على ايقونة تقلب لون اسمك و تخليك ثابت في ماكنك و يظهرلك شارة انك afk بس فاضلي اربطة ب tab
  4. حبي ما اقدر اسوي هذا لاني في رول بلاي ما اقدر اخليه يروح لمكان الافك انا زبطله مود انو يظهر فوقيه علامة afk و يتغير لون اسمو و ما يقدر يتحرك فاضل بس كيف اربطها بالحالة في تاب @Deativated
  5. يعني ده مود لوحدو و لا اضيفه على الاكواد بتاعت ال afk بتاعتي ولا احطه لوحدو في ملف client واعمله meta? @Killer Project
  6. انا عاوز اصلا الاكسبورت لأني ما اعرف استخدمه
  7. شباب كيف اسوي مود الافك في تاب يعني كيف اخلي لما حد يعمل /afk او يدوس على ال hud اللي انا عاملها يظهر للكل في tab ان الشخص ده افك يظهر جمب اسمو AFK
  8. حبي انا ناقصلي كود اكل الهوت دوج مو كودات المود نفسه
  9. كودي اهو GUIEditor = { label = {}, progressbar = {} } addEventHandler ("onClientResourceStart",getResourceRootElement(getThisResource()), function() hungerProcess= guiCreateProgressBar(0.6, 0.01, 0.05, 0.03, true) guiMoveToBack(hungerProcess) guiProgressBarSetProgress(hungerProcess,100) hungerLabel = guiCreateLabel(0.606, 0.015, 0.04, 0.02, "Hunger State", true) guiLabelSetColor(hungerLabel, 253, 0, 0) guiSetFont(hungerLabel,"default-small") setTimer (dropDownHungerState,200,0,getLocalPlayer()) end ) function setHungerState (player,hungerState) if (player == getLocalPlayer()) then guiProgressBarSetProgress(hungerProcess,hungerState) end end function getHungerState (player) if (player == getLocalPlayer()) then return guiProgressBarGetProgress(hungerProcess) end end function dropDownHungerState (player) if (player == getLocalPlayer()) then guiProgressBarSetProgress(hungerProcess,guiProgressBarGetProgress(hungerProcess) -1) if (guiProgressBarGetProgress(hungerProcess) == 0) then setElementHealth (player,getElementHealth (player) -25) outputChatBox ("FAST! You'll get die when you don't eat!",255,0,0,false) elseif (guiProgressBarGetProgress(hungerProcess) == 10) then outputChatBox ("Warning! You begin to become hungry!",255,0,0,false) end end end addEventHandler ("onClientPlayerSpawn",getRootElement(), function (team) setHungerState (source,100) end)
  10. ممكن حضرتك تقلي الايفينت بتاع لما ياكل هوت دوج اصلا ؟ GUIEditor = { label = {}, progressbar = {} } addEventHandler ("onClientResourceStart",getResourceRootElement(getThisResource()), function() hungerProcess= guiCreateProgressBar(0.6, 0.01, 0.05, 0.03, true) guiMoveToBack(hungerProcess) guiProgressBarSetProgress(hungerProcess,100) hungerLabel = guiCreateLabel(0.606, 0.015, 0.04, 0.02, "Hunger State", true) guiLabelSetColor(hungerLabel, 253, 0, 0) guiSetFont(hungerLabel,"default-small") setTimer (dropDownHungerState,200,0,getLocalPlayer()) end ) function setHungerState (player,hungerState) if (player == getLocalPlayer()) then guiProgressBarSetProgress(hungerProcess,hungerState) end end function getHungerState (player) if (player == getLocalPlayer()) then return guiProgressBarGetProgress(hungerProcess) end end function dropDownHungerState (player) if (player == getLocalPlayer()) then guiProgressBarSetProgress(hungerProcess,guiProgressBarGetProgress(hungerProcess) -1) if (guiProgressBarGetProgress(hungerProcess) == 0) then setElementHealth (player,getElementHealth (player) -25) outputChatBox ("FAST! You'll get die when you don't eat!",255,0,0,false) elseif (guiProgressBarGetProgress(hungerProcess) == 10) then outputChatBox ("Warning! You begin to become hungry!",255,0,0,false) end end end addEventHandler ("onClientPlayerSpawn",getRootElement(), function (team) setHungerState (source,100) end) ده الكود الفكرة منشورة اعرف بس انا غيرت شوي اشياء
  11. يعني حبي مشكلتك في الاحداثيات ؟؟ جرب اعمل debugscript 3 وقلي لو فيه اي شي خطا تاني و انا بجيبلك الاحداثيات الان تقبل مروري
  12. السلام عليكم شباب ديه اول مرة ليا انشر بذا المجال ياريت حد يفيدني انا صممت مود جوع بس ناقصلي ايفينت و فنكشن مثلا لما يأكل اي شي مثل الهوت دوج يشبع بمعدل معين وشكرا ياريت حدا يفيدني
  13. hello guys , It's My First Post For Me Here I Wish Any One Can Help Me ...... Briefly, My Problem isn't that my mode isn't work but missing Code i wanna to know a code that make u on eating any food something like Hotdog , Donut , Burger...... etc. make your hunger state increasing by limit amount . I Hope any One can Help me . Thank you.
×
×
  • Create New...