StarBoy Posted August 7, 2015 Share Posted August 7, 2015 السلام عليكم ورحمه الله وبركاته كيف اجيب احداثيات الكاميرا للقيم مود ضوروري Link to comment
Mr.R Posted August 7, 2015 Share Posted August 7, 2015 عشان تجيب احداثيات الكاميرا استخدم كود زاحف addCommandHandler ( "GetCameraPos", function ( ) local x, y, z, xl, yl, zl = getCameraMatrix ( ) if ( x == 0 or y == 0 or z == 0 ) then return end setClipboard ( " "..x..", "..y..", "..z..", "..xl..", "..yl..", "..zl.." " ) end ) GetCameraPos اكتب باف8 وبعدين بتنسخ تلقائيا الي عليك تلصقها بس Link to comment
a7zan Posted August 8, 2015 Share Posted August 8, 2015 عشان تجيب احداثيات الكاميرا استخدم كود زاحف addCommandHandler ( "GetCameraPos", function ( ) local x, y, z, xl, yl, zl = getCameraMatrix ( ) if ( x == 0 or y == 0 or z == 0 ) then return end setClipboard ( " "..x..", "..y..", "..z..", "..xl..", "..yl..", "..zl.." " ) end ) GetCameraPos اكتب باف8 وبعدين بتنسخ تلقائيا الي عليك تلصقها بس شكراً ، كنت بدور ع الكود ذا Link to comment
MoDeR2014 Posted August 9, 2015 Share Posted August 9, 2015 addCommandHandler ( 'getpos', function ( _, round ) if not round then round = 'yes' end local x, y, z = getElementPosition ( localPlayer ) local pos = nil if ( round == 'yes' ) then pos = table.concat ( { math.round ( x, 2 ), math.round ( y, 2 ), math.round ( z, 2 ) }, ", " ); else pos = table.concat ( { x, y, z }, ', ' ) end outputChatBox ( "Coordinates: "..pos.." (Copied!)", 255, 255, 0 ) setClipboard ( pos ) end ) function math.round(number, decimals, method) decimals = decimals or 0 local factor = 10 ^ decimals if (method == "ceil" or method == "floor") then return math[method](number * factor) / factor else return tonumber(("%."..decimals.."f"):format(number)) end end Link to comment
Mr.R Posted August 11, 2015 Share Posted August 11, 2015 عشان تجيب احداثيات الكاميرا استخدم كود زاحف addCommandHandler ( "GetCameraPos", function ( ) local x, y, z, xl, yl, zl = getCameraMatrix ( ) if ( x == 0 or y == 0 or z == 0 ) then return end setClipboard ( " "..x..", "..y..", "..z..", "..xl..", "..yl..", "..zl.." " ) end ) GetCameraPos اكتب باف8 وبعدين بتنسخ تلقائيا الي عليك تلصقها بس شكراً ، كنت بدور ع الكود ذا حياك الله :] Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now