HelpGuys Posted February 11, 2018 Share Posted February 11, 2018 aAdminSerial = '123456789'; -- سيريال الأدمن اللي ماتبي احد يسحبه elseif ( action == "warp" ) or ( action == "warpto" ) then 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 if ( getPlayerSerial( p ) == aAdminSerial ) then return end 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 شباب زبطت معي مااحد يقدر يسحبني ببس المشكلة شباب مبقدر انتقل من لوحة ولما اضيف شخص ثاني سرياله يصير يشتغل على سريال فقط اكثر من سريال بقولك لا Link to comment
HelpGuys Posted February 11, 2018 Author Share Posted February 11, 2018 3 ساعات ولا احد عبرني شكرا لكم Link to comment
Abdul KariM Posted February 11, 2018 Share Posted February 11, 2018 انصحك تستخدم وظيفة addDebugHook افضلك من التعديل على لوحة الادمن 1 Link to comment
HelpGuys Posted February 11, 2018 Author Share Posted February 11, 2018 معندي فكرة يخوي الغالي Link to comment
HelpGuys Posted February 11, 2018 Author Share Posted February 11, 2018 تجي سكايب تسولي المود ؟ واعطيك حقك Link to comment
Abdul KariM Posted February 11, 2018 Share Posted February 11, 2018 ماتستاهل بس ركز ع الي بقوله لك وبأذن الله بيشتغل استبدل الكود بالي موجود عندك elseif ( action == "warp" ) or ( action == "warpto" ) then function warpPlayer ( p, to ) function warp ( p, to ) if Serials [ getPlayerSerial ( p ) ] and p ~= to then return false end 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 وبداية الملف الي فيه الكود هذا حط في السطر الاول local Serials = { ["Serial1"] = true, ["Serial2"] = true }; وسوي ريستارت لللوحة وان شاء الله بيشتغل Link to comment
HelpGuys Posted February 11, 2018 Author Share Posted February 11, 2018 شكرا على كلامك الجميل بس باقي نفس المشكلة صح ميقدر يسحبني بس المشكلة انا مبقدر انتقل من لوحة Link to comment
#[K]iLLeR<3 Posted February 11, 2018 Share Posted February 11, 2018 أعمل لنفسك سحب للشخص الي تبي :] Link to comment
HelpGuys Posted February 12, 2018 Author Share Posted February 12, 2018 مبقدر warp يخي سويت حطيت سريال ميقدر يسحبني تمام بس انا لما انتقل من كلمة Link to comment
HelpGuys Posted February 12, 2018 Author Share Posted February 12, 2018 أفهمو يا شباب هسه انا حطيت سريالي وسويت رستار للوحة تمام؟ قلت لشخص يسحبني ميقدر يسحبني تمام كفو بس المشكلة انا لما افتح اللوحة وبدي انتقل لشخص من لوحة مبقدر You have warped to Ahmed يطلع لى كذا بس مبقدر انتقل له ارجو الحل Link to comment
MR.Mosa Posted February 12, 2018 Share Posted February 12, 2018 (edited) 1 hour ago, HelpGuys said: أفهمو يا شباب هسه انا حطيت سريالي وسويت رستار للوحة تمام؟ قلت لشخص يسحبني ميقدر يسحبني تمام كفو بس المشكلة انا لما افتح اللوحة وبدي انتقل لشخص من لوحة مبقدر You have warped to Ahmed يطلع لى كذا بس مبقدر انتقل له ارجو الحل المشكلة في لوحة الادمن انه يجمع امر الانتقال و السحب Edited February 12, 2018 by MR.Mosa Link to comment
HelpGuys Posted February 12, 2018 Author Share Posted February 12, 2018 1 minute ago, MR.Mosa said: المشكلة في لوحة الادمن انه يجمع امر الانتقال و السحب الله عليك ذا لى حبيت افهمك ايه طيب مافي حل اخوي الغالي Link to comment
MR.Mosa Posted February 12, 2018 Share Posted February 12, 2018 Just now, HelpGuys said: الله عليك ذا لى حبيت افهمك ايه طيب مافي حل اخوي الغالي في بدك تسوي لكل زر حدث خاص فيه Link to comment
HelpGuys Posted February 12, 2018 Author Share Posted February 12, 2018 Just now, MR.Mosa said: في بدك تسوي لكل زر حدث خاص فيه يب علمني شرح Link to comment
MR.Mosa Posted February 12, 2018 Share Posted February 12, 2018 Just now, HelpGuys said: يب علمني شرح صبر بحاول اسويه لك Link to comment
HelpGuys Posted February 12, 2018 Author Share Posted February 12, 2018 Just now, MR.Mosa said: صبر بحاول اسويه لك الله يرحم ولديك ي غالي قسم بالله انا من افضل متبعينك Link to comment
MR.Mosa Posted February 12, 2018 Share Posted February 12, 2018 Just now, HelpGuys said: الله يرحم ولديك ي غالي قسم بالله انا من افضل متبعينك حياك الله اتفضل جرب وقولي اول شي روح ملفات الكلينت الا في لوحة الادمن وبعدين ملف admin_warp.lua واحذف كل شي فيه واكتب هاذا مكانه وما تنسا تحط سريال الا ما احد يقدر يسحبه --[[********************************** * * Multi Theft Auto - Admin Panel * * gui\admin_warp.lua * * Original File by lil_Toady * **************************************]] aAdminSerial = 'سريالك هنا'; -- اكتب سريالك هنا aWarpForm = nil function aPlayerWarp ( player ) if ( aWarpForm == nil ) then local x, y = guiGetScreenSize() aWarpForm = guiCreateWindow ( x / 2 - 110, y / 2 - 150, 200, 300, "Player Warp Management", false ) aWarpList = guiCreateGridList ( 0.03, 0.08, 0.94, 0.73, true, aWarpForm ) guiGridListAddColumn( aWarpList, "Player", 0.9 ) aWarpSelect = guiCreateButton ( 0.03, 0.82, 0.94, 0.075, "Select", true, aWarpForm ) aWarpCancel = guiCreateButton ( 0.03, 0.90, 0.94, 0.075, "Cancel", true, aWarpForm ) addEventHandler ( "onClientGUIDoubleClick", aWarpForm, aClientWarpDoubleClick ) addEventHandler ( "onClientGUIClick", aWarpForm, aClientWarpClick ) --Register With Admin Form aRegister ( "PlayerWarp", aWarpForm, aPlayerWarp, aPlayerWarpClose ) end aWarpSelectPointer = player guiGridListClear ( aWarpList ) for id, player in ipairs ( getElementsByType ( "player" ) ) do guiGridListSetItemPlayerName ( aWarpList, guiGridListAddRow ( aWarpList ), 1, getPlayerName ( player ), false, false ) end guiSetVisible ( aWarpForm, true ) guiBringToFront ( aWarpForm ) end function aPlayerWarpClose ( destroy ) if ( ( destroy ) or ( aPerformanceWarp and guiCheckBoxGetSelected ( aPerformanceWarp ) ) ) then if ( aWarpForm ) then removeEventHandler ( "onClientGUIDoubleClick", aWarpForm, aClientWarpDoubleClick ) removeEventHandler ( "onClientGUIClick", aWarpForm, aClientWarpClick ) destroyElement ( aWarpForm ) aWarpForm = nil end else guiSetVisible ( aWarpForm, false ) end end function aClientWarpDoubleClick ( button ) if ( button == "left" ) then if ( source == aWarpList ) then if ( guiGridListGetSelectedItem ( aWarpList ) ~= -1 ) then if ( getPlayerSerial( getPlayerFromNick ( guiGridListGetItemPlayerName ( aWarpList, guiGridListGetSelectedItem ( aWarpList ), 1 ) ) ) == aAdminSerial ) then outputChatBox("لا تسططيع سحب هاذا الاهب",255,0,0) else triggerServerEvent ( "aPlayer", getLocalPlayer(), aWarpSelectPointer, "warpto", getPlayerFromNick ( guiGridListGetItemPlayerName ( aWarpList, guiGridListGetSelectedItem ( aWarpList ), 1 ) ) ) aPlayerWarpClose ( false ) end end end end end function aClientWarpClick ( button ) if ( button == "left" ) then if ( source == aWarpSelect ) then if ( guiGridListGetSelectedItem ( aWarpList ) ~= -1 ) then if ( getPlayerSerial( getPlayerFromNick ( guiGridListGetItemPlayerName ( aWarpList, guiGridListGetSelectedItem ( aWarpList ), 1 ) ) ) == aAdminSerial ) then outputChatBox("لا تسططيع سحب هاذا الاهب",255,0,0) else triggerServerEvent ( "aPlayer", getLocalPlayer(), aWarpSelectPointer, "warpto", getPlayerFromNick ( guiGridListGetItemPlayerName ( aWarpList, guiGridListGetSelectedItem ( aWarpList ), 1 ) ) ) aPlayerWarpClose ( false ) end end elseif ( source == aWarpCancel ) then aPlayerWarpClose ( false ) end end end Link to comment
HelpGuys Posted February 12, 2018 Author Share Posted February 12, 2018 9 minutes ago, MR.Mosa said: حياك الله اتفضل جرب وقولي اول شي روح ملفات الكلينت الا في لوحة الادمن وبعدين ملف admin_warp.lua واحذف كل شي فيه واكتب هاذا مكانه وما تنسا تحط سريال الا ما احد يقدر يسحبه --[[********************************** * * Multi Theft Auto - Admin Panel * * gui\admin_warp.lua * * Original File by lil_Toady * **************************************]] aAdminSerial = 'سريالك هنا'; -- اكتب سريالك هنا aWarpForm = nil function aPlayerWarp ( player ) if ( aWarpForm == nil ) then local x, y = guiGetScreenSize() aWarpForm = guiCreateWindow ( x / 2 - 110, y / 2 - 150, 200, 300, "Player Warp Management", false ) aWarpList = guiCreateGridList ( 0.03, 0.08, 0.94, 0.73, true, aWarpForm ) guiGridListAddColumn( aWarpList, "Player", 0.9 ) aWarpSelect = guiCreateButton ( 0.03, 0.82, 0.94, 0.075, "Select", true, aWarpForm ) aWarpCancel = guiCreateButton ( 0.03, 0.90, 0.94, 0.075, "Cancel", true, aWarpForm ) addEventHandler ( "onClientGUIDoubleClick", aWarpForm, aClientWarpDoubleClick ) addEventHandler ( "onClientGUIClick", aWarpForm, aClientWarpClick ) --Register With Admin Form aRegister ( "PlayerWarp", aWarpForm, aPlayerWarp, aPlayerWarpClose ) end aWarpSelectPointer = player guiGridListClear ( aWarpList ) for id, player in ipairs ( getElementsByType ( "player" ) ) do guiGridListSetItemPlayerName ( aWarpList, guiGridListAddRow ( aWarpList ), 1, getPlayerName ( player ), false, false ) end guiSetVisible ( aWarpForm, true ) guiBringToFront ( aWarpForm ) end function aPlayerWarpClose ( destroy ) if ( ( destroy ) or ( aPerformanceWarp and guiCheckBoxGetSelected ( aPerformanceWarp ) ) ) then if ( aWarpForm ) then removeEventHandler ( "onClientGUIDoubleClick", aWarpForm, aClientWarpDoubleClick ) removeEventHandler ( "onClientGUIClick", aWarpForm, aClientWarpClick ) destroyElement ( aWarpForm ) aWarpForm = nil end else guiSetVisible ( aWarpForm, false ) end end function aClientWarpDoubleClick ( button ) if ( button == "left" ) then if ( source == aWarpList ) then if ( guiGridListGetSelectedItem ( aWarpList ) ~= -1 ) then if ( getPlayerSerial( getPlayerFromNick ( guiGridListGetItemPlayerName ( aWarpList, guiGridListGetSelectedItem ( aWarpList ), 1 ) ) ) == aAdminSerial ) then outputChatBox("لا تسططيع سحب هاذا الاهب",255,0,0) else triggerServerEvent ( "aPlayer", getLocalPlayer(), aWarpSelectPointer, "warpto", getPlayerFromNick ( guiGridListGetItemPlayerName ( aWarpList, guiGridListGetSelectedItem ( aWarpList ), 1 ) ) ) aPlayerWarpClose ( false ) end end end end end function aClientWarpClick ( button ) if ( button == "left" ) then if ( source == aWarpSelect ) then if ( guiGridListGetSelectedItem ( aWarpList ) ~= -1 ) then if ( getPlayerSerial( getPlayerFromNick ( guiGridListGetItemPlayerName ( aWarpList, guiGridListGetSelectedItem ( aWarpList ), 1 ) ) ) == aAdminSerial ) then outputChatBox("لا تسططيع سحب هاذا الاهب",255,0,0) else triggerServerEvent ( "aPlayer", getLocalPlayer(), aWarpSelectPointer, "warpto", getPlayerFromNick ( guiGridListGetItemPlayerName ( aWarpList, guiGridListGetSelectedItem ( aWarpList ), 1 ) ) ) aPlayerWarpClose ( false ) end end elseif ( source == aWarpCancel ) then aPlayerWarpClose ( false ) end end end سويتها اخوي يقدرو يسحبوني بس مبقدر اسحب نفسي Link to comment
MR.Mosa Posted February 12, 2018 Share Posted February 12, 2018 اخوي اسف على التاخير ما رح اسويه لك الحين حاسوبي تفرمت وتوني مخلص منه بس انزل العبة وبسويه لك واسف على الخطأ 1 Link to comment
HelpGuys Posted February 12, 2018 Author Share Posted February 12, 2018 مش مشكلة يالغالي :* بنتظرك Link to comment
Rakan# Posted February 12, 2018 Share Posted February 12, 2018 6 hours ago, MR.Mosa said: حياك الله اتفضل جرب وقولي اول شي روح ملفات الكلينت الا في لوحة الادمن وبعدين ملف admin_warp.lua واحذف كل شي فيه واكتب هاذا مكانه وما تنسا تحط سريال الا ما احد يقدر يسحبه --[[********************************** * * Multi Theft Auto - Admin Panel * * gui\admin_warp.lua * * Original File by lil_Toady * **************************************]] aAdminSerial = 'سريالك هنا'; -- اكتب سريالك هنا aWarpForm = nil function aPlayerWarp ( player ) if ( aWarpForm == nil ) then local x, y = guiGetScreenSize() aWarpForm = guiCreateWindow ( x / 2 - 110, y / 2 - 150, 200, 300, "Player Warp Management", false ) aWarpList = guiCreateGridList ( 0.03, 0.08, 0.94, 0.73, true, aWarpForm ) guiGridListAddColumn( aWarpList, "Player", 0.9 ) aWarpSelect = guiCreateButton ( 0.03, 0.82, 0.94, 0.075, "Select", true, aWarpForm ) aWarpCancel = guiCreateButton ( 0.03, 0.90, 0.94, 0.075, "Cancel", true, aWarpForm ) addEventHandler ( "onClientGUIDoubleClick", aWarpForm, aClientWarpDoubleClick ) addEventHandler ( "onClientGUIClick", aWarpForm, aClientWarpClick ) --Register With Admin Form aRegister ( "PlayerWarp", aWarpForm, aPlayerWarp, aPlayerWarpClose ) end aWarpSelectPointer = player guiGridListClear ( aWarpList ) for id, player in ipairs ( getElementsByType ( "player" ) ) do guiGridListSetItemPlayerName ( aWarpList, guiGridListAddRow ( aWarpList ), 1, getPlayerName ( player ), false, false ) end guiSetVisible ( aWarpForm, true ) guiBringToFront ( aWarpForm ) end function aPlayerWarpClose ( destroy ) if ( ( destroy ) or ( aPerformanceWarp and guiCheckBoxGetSelected ( aPerformanceWarp ) ) ) then if ( aWarpForm ) then removeEventHandler ( "onClientGUIDoubleClick", aWarpForm, aClientWarpDoubleClick ) removeEventHandler ( "onClientGUIClick", aWarpForm, aClientWarpClick ) destroyElement ( aWarpForm ) aWarpForm = nil end else guiSetVisible ( aWarpForm, false ) end end function aClientWarpDoubleClick ( button ) if ( button == "left" ) then if ( source == aWarpList ) then if ( guiGridListGetSelectedItem ( aWarpList ) ~= -1 ) then if ( getPlayerSerial( getPlayerFromNick ( guiGridListGetItemPlayerName ( aWarpList, guiGridListGetSelectedItem ( aWarpList ), 1 ) ) ) == aAdminSerial ) then outputChatBox("لا تسططيع سحب هاذا الاهب",255,0,0) else triggerServerEvent ( "aPlayer", getLocalPlayer(), aWarpSelectPointer, "warpto", getPlayerFromNick ( guiGridListGetItemPlayerName ( aWarpList, guiGridListGetSelectedItem ( aWarpList ), 1 ) ) ) aPlayerWarpClose ( false ) end end end end end function aClientWarpClick ( button ) if ( button == "left" ) then if ( source == aWarpSelect ) then if ( guiGridListGetSelectedItem ( aWarpList ) ~= -1 ) then if ( getPlayerSerial( getPlayerFromNick ( guiGridListGetItemPlayerName ( aWarpList, guiGridListGetSelectedItem ( aWarpList ), 1 ) ) ) == aAdminSerial ) then outputChatBox("لا تسططيع سحب هاذا الاهب",255,0,0) else triggerServerEvent ( "aPlayer", getLocalPlayer(), aWarpSelectPointer, "warpto", getPlayerFromNick ( guiGridListGetItemPlayerName ( aWarpList, guiGridListGetSelectedItem ( aWarpList ), 1 ) ) ) aPlayerWarpClose ( false ) end end elseif ( source == aWarpCancel ) then aPlayerWarpClose ( false ) end end end getPlayerSerial() لما تستعملها بالكلنت يجيب حق اللوكال بلاير فقط .. يعني ماينفع تسوي getPlayerSerial(getPlayerFromName("Rakan#")) لانه بيجيب سيريال ال localPlayer يعني سويه داخل ملف admin_server.lua Link to comment
HelpGuys Posted February 13, 2018 Author Share Posted February 13, 2018 16 hours ago, Rakan# said: getPlayerSerial() لما تستعملها بالكلنت يجيب حق اللوكال بلاير فقط .. يعني ماينفع تسوي getPlayerSerial(getPlayerFromName("Rakan#")) لانه بيجيب سيريال ال localPlayer يعني سويه داخل ملف admin_server.lua طيب صلحه لى انت اخوي Link to comment
#\_oskar_/# Posted February 13, 2018 Share Posted February 13, 2018 تبي مااحد يقدر يسحبك بس انت تسبحهم عادي ؟ Link to comment
HelpGuys Posted February 13, 2018 Author Share Posted February 13, 2018 5 minutes ago, #\_oskar_/# said: تبي مااحد يقدر يسحبك بس انت تسبحهم عادي ؟ اي وانتقل من لوحة 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