#,Dr.To[sh]iBa Posted November 2, 2016 Share Posted November 2, 2016 سلام عليكم شباب ابي اسوي مود انه ما يقدر يسحب شخص محدد ممكن بالسريال او بالحساب او بالرتبه وشكرا Link to comment
iPrestege Posted November 3, 2016 Share Posted November 3, 2016 يسحبه كيف؟ رتبه ولا مكان؟ 1 Link to comment
MR.Mosa Posted November 3, 2016 Share Posted November 3, 2016 اطرح لوحة الادمنية واعدلها لك Link to comment
#,Dr.To[sh]iBa Posted November 3, 2016 Author Share Posted November 3, 2016 6 hours ago, FaHaD said: يسحبه كيف؟ رتبه ولا مكان؟ ما يسحبنيWarp Player TO me يعني يا غالي لو احد فتح لوحة الادمنيه وضغط علي اسمي وضغط علي Link to comment
iPrestege Posted November 3, 2016 Share Posted November 3, 2016 حط داتا للاعب اول مايدخل السيرفر تحقق من سريالك : addEventHandler ( 'onPlayerJoin' ) getPlayerSerial setElementData -- وفي الادمنية ابحث عن الزر اللي يسوي الـ Warp Player To -- وابحث عن الحدث اللي يوم يضغط والتحقق وسوي تحقق اذا كان عنده داتا يطلع خطأ ومايسوي شيء -- 1 Link to comment
fargot.. Posted November 3, 2016 Share Posted November 3, 2016 (edited) فهد ذا الكود تحطو في اي مود ؟؟ او في اي ملف ... Edited November 3, 2016 by Ad[N]a[N]e Link to comment
iPrestege Posted November 3, 2016 Share Posted November 3, 2016 هذي وظائف وحدث + استعمل : addEventHandler ( 'onResourceStart' ) getElementsType setElementData نسيت احط لكم هذي .. وسوي الاكواد Link to comment
Abdul KariM Posted November 3, 2016 Share Posted November 3, 2016 * getElementsByType 1 Link to comment
#bazooka Posted November 3, 2016 Share Posted November 3, 2016 (edited) elseif ( action == "warp" ) or ( action == "warpto" ) then if getElementData( player ,"Account") == "???" then exports["guimessages"]:outputServer(source, "* #BDBCB7"..getPlayerName(player).." #FF0000is the owner you cant warp him", 255, 100, 100) return end function warpPlayer ( p, to ) function warp ( p, to ) local x, y, z = getElementPosition ( to ) local r = getPedRotation ( to ) x = x - math.sin ( math.rad ( r ) ) * 2 y = y + math.cos ( math.rad ( r ) ) * 2 setTimer ( setElementPosition, 1000, 1, p, x, y, z + 1 ) fadeCamera ( p, false, 1, 0, 0, 0 ) setElementDimension ( p, getElementDimension ( to ) ) setElementInterior ( p, getElementInterior ( to ) ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) end if ( action == "warp" ) then if getElementData( player ,"Account") == "???yourAccount" then exports["guimessages"]:outputServer(source, "* #BDBCB7"..getPlayerName(player).." #FF0000is the owner you cant warp him", 255, 100, 100) return end warpPlayer ( source, player ) else warpPlayer ( player, data ) mdata = getPlayerName ( data ) end Edited November 3, 2016 by #bazooka Link to comment
#,Dr.To[sh]iBa Posted November 4, 2016 Author Share Posted November 4, 2016 14 hours ago, #bazooka said: elseif ( action == "warp" ) or ( action == "warpto" ) then if getElementData( player ,"Account") == "???" then exports["guimessages"]:outputServer(source, "* #BDBCB7"..getPlayerName(player).." #FF0000is the owner you cant warp him", 255, 100, 100) return end function warpPlayer ( p, to ) function warp ( p, to ) local x, y, z = getElementPosition ( to ) local r = getPedRotation ( to ) x = x - math.sin ( math.rad ( r ) ) * 2 y = y + math.cos ( math.rad ( r ) ) * 2 setTimer ( setElementPosition, 1000, 1, p, x, y, z + 1 ) fadeCamera ( p, false, 1, 0, 0, 0 ) setElementDimension ( p, getElementDimension ( to ) ) setElementInterior ( p, getElementInterior ( to ) ) setTimer ( fadeCamera, 1000, 1, p, true, 1 ) end if ( action == "warp" ) then if getElementData( player ,"Account") == "???yourAccount" then exports["guimessages"]:outputServer(source, "* #BDBCB7"..getPlayerName(player).." #FF0000is the owner you cant warp him", 255, 100, 100) return end warpPlayer ( source, player ) else warpPlayer ( player, data ) mdata = getPlayerName ( data ) end ???= حساب اللاعب ولا وش ؟ Link to comment
!#NssoR_) Posted November 4, 2016 Share Posted November 4, 2016 ^ راح يكون حساب اللاعب في حال ضفت هذا الكود في ملف السيرفر addEventHandler('onPlayerLogin',root, function ( _ ,acc ) setElementData(source,'Account',getAccountName(acc)) end ) addEventHandler('onPlayerLogout',root, function ( _,acc ) local Does_has_a_name = getElementData(source,'Account') or false if ( Does_has_a_name ) then removeElementData(source,'Account') end end ) 1 Link to comment
Abdul KariM Posted November 4, 2016 Share Posted November 4, 2016 (edited) + addEventHandler ( "onResourceStart" , resourceRoot , function ( ) for _, players in ipairs ( getElementsByType ( "player" ) ) do local playerAcc = getPlayerAccount ( players ) if ( playerAcc ) and not ( isGuestAccount ( playerAcc ) ) then local accName = getAccountName ( playerAcc ) setTimer ( setElementData , 500 , 1 , players , "Account" , accName ) end end end ) Edited November 4, 2016 by Abdul KariM 2 Link to comment
!#NssoR_) Posted November 4, 2016 Share Posted November 4, 2016 3 minutes ago, Abdul KariM said: + addEventHandler ( "onResourceStart" , resourceRoot , function ( ) for _, players in ipairs ( getElementsByType ( "player" ) ) do local playerAcc = getPlayerAccount ( v ) if ( playerAcc ) and not ( isGuestAccount ( playerAcc ) ) then local accName = getAccountName ( playerAcc ) setTimer ( setElementData , 500 , 1 , players , "Account" , accName ) end end end ) في فنكشن إحضار حساب اللاعب غير معرف v المتغير 1 Link to comment
Abdul KariM Posted November 4, 2016 Share Posted November 4, 2016 يعطيك العافية على التنبيه تلخبطت Link to comment
#,Dr.To[sh]iBa Posted November 4, 2016 Author Share Posted November 4, 2016 (edited) 1 hour ago, Abdul KariM said: + addEventHandler ( "onResourceStart" , resourceRoot , function ( ) for _, players in ipairs ( getElementsByType ( "player" ) ) do local playerAcc = getPlayerAccount ( players ) if ( playerAcc ) and not ( isGuestAccount ( playerAcc ) ) then local accName = getAccountName ( playerAcc ) setTimer ( setElementData , 500 , 1 , players , "Account" , accName ) end end end ) 1 hour ago, !#NssoR_) said: في فنكشن إحضار حساب اللاعب غير معرف v المتغير if ( action == "warp" ) then if getElementData( player ,"Account") == "???yourAccount" then exports["guimessages"]:outputServer(source, "* #BDBCB7"..getPlayerName(player).." #FF0000is the owner you cant warp him", 255, 100, 100) return end warpPlayer ( source, player ) else warpPlayer ( player, data ) mdata = getPlayerName ( data ) end يعني هذا الكود شغال ولا لا Edited November 4, 2016 by abulghar Link to comment
iPrestege Posted November 4, 2016 Share Posted November 4, 2016 وليش ماتسوي اذا الاعب سجل دخوله حط لة داتا وخلاص وبالكلنت اذا ضغطت شوف تحقق انة الداتا موجودة وارجع لرسالة خطأ وخلاص ؟ Link to comment
#bazooka Posted November 5, 2016 Share Posted November 5, 2016 (edited) On 11/4/2016 at 1:19 PM, abulghar said: ???= حساب اللاعب ولا وش ؟ حساب الاعب , ، بس طبعا بلوحة الادمنية حطه الكود Edited November 5, 2016 by #bazooka 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