Jump to content

ابي مساعده لوسمحتو (تم الحل)ز


Recommended Posts

السلام عليكم انشالله طيبين

و ندخل بل موضوع

اليوم طلبت سكربت و جاني السيكربت و السكرب عباره عن

موود لما تسوي ميوت للاعب يطلع كتابه فوق راس الاعب مكتوب [muted]

PiHmjae.png

مثال

و الجماعه ما قصرو و جابولي السكربت

client side--

function testing() 
      local px, py, pz, tx, ty, tz, dist 
      px, py, pz = getCameraMatrix( ) 
      for _, v in ipairs( getElementsByType 'player' ) do 
         tx, ty, tz = getElementPosition( v ) 
         dist = math.sqrt( ( px - tx ) ^ 2 + ( py - ty ) ^ 2 + ( pz - tz ) ^ 2 ) 
         if dist < 32.0 then 
            if isLineOfSightClear( px, py, pz, tx, ty, tz, true, false, false, true, false, false, false,localPlayer ) then 
               local sx, sy, sz = getPedBonePosition( v, 5 ) 
               local x,y = getScreenFromWorldPosition( sx, sy, sz + 0.30 ) 
               local x1,y1 = getScreenFromWorldPosition( sx, sy, sz + 0.35 ) 
               local r,g,b = getPlayerNametagColor(localPlayer) 
               scale = 0.65 
                     if x then 
                          if getElementData(v,"playermuted") == 1 then 
                                dxDrawText( "Muted", x, y, x, y, tocolor(r, g, b), scale + ( 15 - dist ) * 0.02, "bankgothic" ) 
                  end 
                    end 
               end 
          end 
     end 
end 
addEventHandler("onClientRender",root,testing) 

server side---

function isMuted() 
      setElementData(source,"playermuted",1) 
end 
addEventHandler("onPlayerMute",root,isMuted) 
  
function isNotMuted() 
setElementData(source,"playermuted",0) 
end 
addEventHandler("onPlayerUnmute",root,isNotMuted) 

المشكله هيا

1.الاميون ما يختفي لما يخلص الوقت

و بس و اذا تطلبون ال ميتا

meta.mxl

  

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...