Jump to content

Mr.Ronaldo

Members
  • Posts

    351
  • Joined

  • Last visited

Everything posted by Mr.Ronaldo

  1. ???? تحقق في كود اخذ الادمنيه حقك اذا كان اللاعب في هذا القروب if not isObjectInACLGroup("user."..getAccountName(account),aclGetGroup("Your-Group-Name")) then اسف ما لاحظت الموضوع جيدا
  2. استخدم setElementData getElementData
  3. Weapon2 = { "MP5", "AK-47", "Tec-9", "Deagle", } addEventHandler( "onPlayerWasted", root, function() if ( getElementDimension ( source ) ) == 3 then Randoms2 = unpack(Weapon2[math.random(#Weapon2)]) setWeapon = getWeaponIDFromName ( Randoms2 ) giveWeapon ( source, setWeapon,8000, true ) local SpawnDetails = SpawnsTable[( ( getPlayerTeam( source ) or nil ) == getTeamFromName( "Zombie" ) and "Zombies" or getElementDimension( source ) == 3 and "Non-Zombies" or "OtherPlayers" ).."Spawns"] SpawnDetails = SpawnDetails[math.random( #SpawnDetails )] SpawnPlayer( source, SpawnDetails["PositionX"], SpawnDetails["PositionY"], SpawnDetails["PositionZ"], SpawnDetails["Rotation"], SpawnDetails["Skins"][math.random( #SpawnDetails["Skins"] )], SpawnDetails["Interior"], SpawnDetails["Dimension"], SpawnDetails["TeamName"] and getTeamFromName( SpawnDetails["TeamName"] ) ) end end ) جرب
  4. Weapon2 = { "MP5", "AK-47", "Tec-9", "Deagle", } addEventHandler( "onPlayerWasted", root, function() if ( getElementDimension ( source ) ) == 3 then Randoms2 = Weapon2 [ math.random ( #Weapon2 ) ] setWeapon = getWeaponIDFromName ( Randoms2 ) giveWeapon ( source, setWeapon,8000, true ) local SpawnDetails = SpawnsTable[( ( getPlayerTeam( source ) or nil ) == getTeamFromName( "Zombie" ) and "Zombies" or getElementDimension( source ) == 3 and "Non-Zombies" or "OtherPlayers" ).."Spawns"] SpawnDetails = SpawnDetails[math.random( #SpawnDetails )] SpawnPlayer( source, SpawnDetails["PositionX"], SpawnDetails["PositionY"], SpawnDetails["PositionZ"], SpawnDetails["Rotation"], SpawnDetails["Skins"][math.random( #SpawnDetails["Skins"] )], SpawnDetails["Interior"], SpawnDetails["Dimension"], SpawnDetails["TeamName"] and getTeamFromName( SpawnDetails["TeamName"] ) ) end )
  5. Smaja = { "حمار", "ذكي", "سيارة", "زرعة", "نباتة", "كوكب", "ذبابة", "كلب", }
  6. ابداع × ابداع ما شاء الله عليك استمررر
  7. addEventHandler("onClientGUIClick",root,function() if source == button then end end) ويمديك تسويه كذا addEventHandler("onClientGUIClick",root,function(crazyloOs) if crazyloOs == button then end end) ما راح يفرق ان شاء الله تكون فهمت لوس تكون معجزه
  8. ولله مو ذمبي انك ما تفهم
  9. اساسا انت ما تفهم شي عشان تجي تتكلم وبعدين روح افهمو انت الاول بعدين تعال كلمني +الطريقتين ينفعو حبيبي بس انت ما تفهم لان مخك صغير مهما حاولت افهمك اساسا ما رح تفهم
  10. من اين اتيت بـ hit ? ثاني شيء الايفنت يرجع لك الاحداثيات والريترون ، يعني مايرجع لك الزومبي الزومبي هنا هو السورس function (hit) hit = فاعل الحدث الى هو الزومبي = source بس source = لها طريقه ثانيه بيصير كذا addEventHandler ( "onZombieSpawn", root, function () if ( isElementWithinColShape ( source, SZC ) ) then setElementPosition ( source, 1404.19922, 2756.91577, 10.82031 ) end end ) يعني بالاول وبالاخر نفس الشي الاختلاف فى الطريقه
  11. addEventHandler("onPlayerWasted",root,function() if getPlayerTeam(source) == getTeamFromName("staff") then outputChatBox("Wasted staff",source,255,0,0,false) elseif getPlayerTeam(source) == getTeamFromName("owner") then outputChatBox("Wasted Owner",source,255,0,0,false) end end)
  12. لو حطيت قيمة الداتا true وجيت اتحققت اذا اللاعب معه الداتا ما في داعي تحقق من القيمة غير هيك لازم تحقق منها setElementData(player,"data",true) --ما في داعي للتحقق من قيمة الداتا setElementData(player,"data","Ronaldo") --هيك يمديلها تحقق
  13. طيب ؟؟ الحين لو الاعب عمل setElementData(v, ...... ) رح يجيله بالديبوق argumnt 1, ( a nil value ) فــ كيف رح يحط قيمة للداتا اذا هي nil ولا رح يسوي لوب ثاني كمان ؟ لو حط قيمة للداتا true ما في داعي انه يتحقق من القيمة هيك يعني setElementData(v,"Dataname",true)
  14. for k,v in ipairs (getElementsByType("player")) do if getElementData(v,"Dataname") then setPedArmor (v,100) setElementHealth (v,100) end end ذا عشان تسوي لوب على اللاعبين ويتحقق اذا كان بداتا معينه يعطيه دم ودرع بالنسبه عشان يختار لاعب معين ما فهمت قصدك انت تبي يختار لاعب عشوائي ولا عند اختيار لاعب من قريد ليست ؟
  15. addEventHandler( 'onPlayerChat', getRootElement(), function ( msg ) local timerT = 5000 -- Timer time to do . if isTimer ( Timer ) then -- if the timer not stopped then do : leftT , executeR, Texecute = getTimerDetails(Timer) -- get Timer Remaining Time outputChatBox('#Please wait' .. math.floor(leftT / 1000) .. ' seconds to can say in chat again', source, 255,0,0, true) cancelEvent() return end if ( msg == tostring(msg) ) then -- if player said in the chat then set Timer Timer = setTimer (function() end, tonumber(timerT), 1) end end )
  16. بالتوفيق لكم دائما ابداعك مالو حدود روليكس واصل
×
×
  • Create New...