zyaad141 Posted August 17, 2014 Share Posted August 17, 2014 (edited) سلام عليكم وحرمة الله وبركاتة الزبده اول موضوع لي انا معي كود لاكان اشغله ومسوي تحقق انه ما يشتغل الا *علي ,وعلى الي رتبته ادمن وكونسل وذلحركات الزبده الكود addEvent("crazy",true) addEventHandler("crazy",root, function check(thePlayer, commandName,...) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Level6" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Head.Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) ++ عطوني الفنكشات االناقصه Edited August 18, 2014 by Guest Link to comment
zyaad141 Posted August 17, 2014 Author Share Posted August 17, 2014 هذا كلينت local Url = "wrksp.png" local zUP = 16 addEventHandler( "onClientRender", root, function ( ) local x, y, z = getElementPosition( localPlayer ) local Mx, My, Mz = getCameraMatrix( ) if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + zUP, 0.07 ) if ( WorldPositionX and WorldPositionY ) then dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url ) end end end triggerServerEvent("crazy", localPlayer, Url) Link to comment
nxFairlywell Posted August 17, 2014 Share Posted August 17, 2014 ياخي اطرحها كلها وبعد مايضبط وخرها من الموضوع اذا خايف على كودك Link to comment
zyaad141 Posted August 17, 2014 Author Share Posted August 17, 2014 يا اخي هذولا الكودين كاملين ويعني ليش بخبي كود الكلينت local Url = "wrksp.png" local zUP = 16 addEventHandler( "onClientRender", root, function ( ) local x, y, z = getElementPosition( localPlayer ) local Mx, My, Mz = getCameraMatrix( ) if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + zUP, 0.07 ) if ( WorldPositionX and WorldPositionY ) then dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url ) end end end triggerServerEvent("crazy", localPlayer, Url) --سيرفر local Url = "wrksp.png" local zUP = 16 addEventHandler( "onClientRender", root, function ( ) local x, y, z = getElementPosition( localPlayer ) local Mx, My, Mz = getCameraMatrix( ) if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + zUP, 0.07 ) if ( WorldPositionX and WorldPositionY ) then dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url ) end end end triggerServerEvent("crazy", localPlayer, Url) بإختصار ابيها تطلع فوق رتب محدده< Link to comment
nxFairlywell Posted August 17, 2014 Share Posted August 17, 2014 تستهبل طارح لي كود كلنت مرتين Link to comment
zyaad141 Posted August 17, 2014 Author Share Posted August 17, 2014 تستهبل طارح لي كود كلنت مرتين يبوي انت تقول اطرح الكود كامل انا جبتهم ثنيناتهم (كلهم كاملات) Link to comment
Max+ Posted August 17, 2014 Share Posted August 17, 2014 تستهبل طارح لي كود كلنت مرتين يبوي انت تقول اطرح الكود كامل انا جبتهم ثنيناتهم (كلهم كاملات) وين الكاملات ؟ لو الكود لك ودي اساعدك ، بس ماساعد بكود مو لك ، Link to comment
zyaad141 Posted August 17, 2014 Author Share Posted August 17, 2014 تستهبل طارح لي كود كلنت مرتين يبوي انت تقول اطرح الكود كامل انا جبتهم ثنيناتهم (كلهم كاملات) وين الكاملات ؟ لو الكود لك ودي اساعدك ، بس ماساعد بكود مو لك ، انا جمعت الاكواد وركبت الحين ابي اعرف وين المشكله بس Link to comment
zyaad141 Posted August 17, 2014 Author Share Posted August 17, 2014 الشيء الي ابي اعرفه وش الناقص بالسيرفر واذا ناقص قلولي بوش ناقص Link to comment
Max+ Posted August 17, 2014 Share Posted August 17, 2014 جرب , --- سيرفر local Groups = {"Level6","Head.Admin","Admin","Console"} addEventHandler( "onPlayerLogin", root,function ( _,acc ) for _,v in ipairs (Groups) do if ( isObjectInACLGroup("user."..getAccountName( acc ), aclGetGroup( v ) ) ) then triggerClientEvent ( source, 'Pic', source ) end end end ) --- كلينت local Url = "wrksp.png" local zUP = 16 function xxx ( ) local x, y, z = getElementPosition( localPlayer ) local Mx, My, Mz = getCameraMatrix( ) if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + zUP, 0.07 ) if ( WorldPositionX and WorldPositionY ) then dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url ) end end end addEvent ( 'Pic', true) addEventHandler ('Pic', root, function ( ) addEventHandler( "onClientRender", root, xxx ) end ) Link to comment
AboShanab Posted August 17, 2014 Share Posted August 17, 2014 جرب , --- سيرفر local Groups = {"Level6","Head.Admin","Admin","Console"} addEventHandler( "onPlayerLogin", root,function ( _,acc ) for _,v in ipairs (Groups) do if ( isObjectInACLGroup("user."..getAccountName( acc ), aclGetGroup( v ) ) ) then triggerClientEvent ( source, 'Pic', source ) end end end ) --- كلينت local Url = "wrksp.png" local zUP = 16 function xxx ( ) local x, y, z = getElementPosition( localPlayer ) local Mx, My, Mz = getCameraMatrix( ) if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + zUP, 0.07 ) if ( WorldPositionX and WorldPositionY ) then dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url ) end end end addEvent ( 'Pic', true) addEventHandler ('Pic', root, function ( ) addEventHandler( "onClientRender", root, xxx ) end ) اللوب مكانه غلط اصلاً راح يجيب قمة الاق للاعب ض1 انت مسوي يتحقق من كل القروبات ههههههههههههه يعني يسوي ترايقر على عدد القروبات Link to comment
#DRAGON!FIRE Posted August 18, 2014 Share Posted August 18, 2014 هذي طريقة عشان الصورة تكون لقروب محدد .. Client Side ! local Url = "crown.png" --- اسسم الصورة هنا local zUP = 10 ---- ارتفأع الصورة addEventHandler( "onClientRender", root, function ( ) if ( getElementData ( localPlayer, "VIPData" ) == true ) then local x, y, z = getElementPosition( localPlayer ) local Mx, My, Mz = getCameraMatrix( ) if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + zUP, 0.07 ) if ( WorldPositionX and WorldPositionY ) then dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url ) end end end end ) Server Side ! addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _,players in ipairs ( getElementsByType ( "player" ) ) do if ( getPlayerAccount( players ) and not isGuestAccount( getPlayerAccount( players ) ) ) then if ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( players ) ), aclGetGroup ( "V.I.P" ) ) ) then setElementData ( players, "VIPData", true ) end end end end ) addEventHandler ( "onPlayerLogin", root, function ( _,acc ) if ( isObjectInACLGroup ( "user."..getAccountName( acc ), aclGetGroup ( "V.I.P" ) ) ) then setElementData ( source, "VIPData", true ) end end ) Link to comment
zyaad141 Posted August 18, 2014 Author Share Posted August 18, 2014 هذي طريقة عشان الصورة تكون لقروب محدد .. Client Side ! local Url = "crown.png" --- اسسم الصورة هنا local zUP = 10 ---- ارتفأع الصورة addEventHandler( "onClientRender", root, function ( ) if ( getElementData ( localPlayer, "VIPData" ) == true ) then local x, y, z = getElementPosition( localPlayer ) local Mx, My, Mz = getCameraMatrix( ) if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 15 ) then local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z + zUP, 0.07 ) if ( WorldPositionX and WorldPositionY ) then dxDrawImage( WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, Url ) end end end end ) Server Side ! addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _,players in ipairs ( getElementsByType ( "player" ) ) do if ( getPlayerAccount( players ) and not isGuestAccount( getPlayerAccount( players ) ) ) then if ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( players ) ), aclGetGroup ( "V.I.P" ) ) ) then setElementData ( players, "VIPData", true ) end end end end ) addEventHandler ( "onPlayerLogin", root, function ( _,acc ) if ( isObjectInACLGroup ( "user."..getAccountName( acc ), aclGetGroup ( "V.I.P" ) ) ) then setElementData ( source, "VIPData", true ) end end ) تشكر يا ماكس ويا زاحف ومعليش اذا تعبتكم Link to comment
#DRAGON!FIRE Posted August 18, 2014 Share Posted August 18, 2014 العفو .. استخدم كودي ولو تبيه لاكثر من قروب سوي تيبل 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