Professional Posted October 26, 2014 Share Posted October 26, 2014 السلام عليكم شباب مطلوب فنكش مثلا انا حاط ماركر ان لي يلمسها وينتقل هو الادمن ممنوع العضو اذا العضو لمسها يعطيه سلاب اما اذا الادمن ينتقل على المكان لي احط الاحداثيات عليه وسلام عليكم Link to comment
nxFairlywell Posted October 26, 2014 Share Posted October 26, 2014 addEventHandler("onMarkerHit", root, function ( hitElement ) if source == Marker then ----------- Marker = اسم الماركر حقك if getElementType( hitElement ) == "player" then if ( isObjectInACLGroup("user."getAccountName(getPlayerAccount(hitElement) ), aclGetGroup("Admin") ) ) then spawnPlayer(hitElement, x, y, z) --- x , y , z = الاحداثيات else setElementHealth(hitElement, 0) end end end end ) Link to comment
Professional Posted October 26, 2014 Author Share Posted October 26, 2014 ممكن سؤال بقدر احطها مثلا كلمه باف 8 او في لوحه الادمنيه واقدر ادخل عليها لاعبين لي احط اسمائهم يعني وسيريالاتهم فقط؟؟ Link to comment
#Mr.alkmasha Posted October 26, 2014 Share Posted October 26, 2014 يعني تبي تكتب كلمه ب اف 8 و ينقلك ل مكان بس اذا يكون سيريالك مكتوب؟ Link to comment
#Mr.alkmasha Posted October 26, 2014 Share Posted October 26, 2014 تفضل ذا الكود حق اذا انت معك رتبه معينه ينقلك addEventHandler("onMarkerHit", root, function ( player ) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "xxx" ) ) then if source == mar then end --- حط اسم الماركر مكان mar if getElementType( player ) == "player" then end setElementPosition ( player,x,y,z)--- احداثيات else killPlayer(player) end end ) 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