Mbtdaa Posted January 27, 2014 Share Posted January 27, 2014 السلام عليكم اخواني انا متابع لمواضيع الشروحات بالقسم والوايكي باستمرار وحسيت اني بديت افهم شويات وحبيت اسوي لي كود واشوفكم وش تقولو هل هو صحيح وخالي من المشااكل ولا طبعا الكود حق تسجيل دخول قروب معين addEventHandler("onPlayerLogin") function (admin) if isObjectInACLGroup("user."..getAccountName(admin), aclGetGroup("Admin")) then outputChatBox (..getPlayerName(admin)"Admin login.!"255,255,255 end end) Link to comment
Do_De<3 Posted January 27, 2014 Share Posted January 27, 2014 addEventHandler("onPlayerLogin") function (admin) if isObjectInACLGroup("user."..getAccountName(admin), aclGetGroup("Admin")) then outputChatBox (..getPlayerName(admin)"Admin login.!"255,255,255 end end) _____________________________________________________________________________ ^ هذآ اول مايسجل دخولهه اللاعب يتحقق اذا كان في قروب الادمن ويكتب في الشات تم دخول الادمن : ) Link to comment
Mando Posted January 27, 2014 Share Posted January 27, 2014 addEventHandler("onPlayerJoin",root, function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ); if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then outputChatBox ( '* Admins Login "..name.."',root,0,255,0 ) end end ); جرب بس حاسس انه راح يطلع خطأ ^ Link to comment
Do_De<3 Posted January 27, 2014 Share Posted January 27, 2014 (edited) ! Edited January 27, 2014 by Guest Link to comment
Do_De<3 Posted January 27, 2014 Share Posted January 27, 2014 (edited) ! Edited January 27, 2014 by Guest Link to comment
Do_De<3 Posted January 27, 2014 Share Posted January 27, 2014 addEventHandler("onPlayerJoin",root, function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ); if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then outputChatBox ( '* Admins Login "..name.."',root,0,255,0 ) end end ); جرب بس حاسس انه راح يطلع خطأ ^ انت حاطط حدث اول مايخش اللاعب : / هو يبي اول مايسجل دخولهه اللاعب يتحقق اذا كان في قروب الادمن و يجيهه في الشات تم تسجيل دخول الادمن فهمت addEventHandler("onPlayerLogin",root, function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ); if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then outputChatBox ( '* Admins Login "..name.."',root,0,255,0 ) end end ); Link to comment
Mbtdaa Posted January 27, 2014 Author Share Posted January 27, 2014 ياخوان بغيت اسالكم .root. وش معناها ؟؟ووش تسوي Link to comment
K1NG Posted January 27, 2014 Share Posted January 27, 2014 addEventHandler("onPlayerJoin",root, function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ); if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then outputChatBox ( '* Admins Login "..name.."',root,0,255,0 ) end end ); جرب بس حاسس انه راح يطلع خطأ ^ No Comment! انت حاطط حدث اول مايخش اللاعب : /هو يبي اول مايسجل دخولهه اللاعب يتحقق اذا كان في قروب الادمن و يجيهه في الشات تم تسجيل دخول الادمن فهمت addEventHandler("onPlayerLogin",root, function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ); if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then outputChatBox ( '* Admins Login "..name.."',root,0,255,0 ) end end ); No Comment! addEventHandler("onPlayerLogin") function (admin) if isObjectInACLGroup("user."..getAccountName(admin), aclGetGroup("Admin")) then outputChatBox (..getPlayerName(admin)"Admin login.!"255,255,255 end end) _____________________________________________________________________________ ^ هذآ اول مايسجل دخولهه اللاعب يتحقق اذا كان في قروب الادمن ويكتب في الشات تم دخول الادمن : ) ._. ؟؟ ترا الكود تخبيص --- : بالنسبة لصاحب الموضوع كودكـ يصير كذا، ووظيفته مثل ماقالكـ أخونا دودي .. تفضل * Server Side: addEventHandler ( "onPlayerLogin", root, function ( _, acc ) if ( isObjectInACLGroup ( "user." .. getAccountName ( acc ), aclGetGroup ( "Admin" ) ) ) then outputChatBox ( getPlayerName ( source ) .. " Admin login.!", root, 255, 255, 255, true ) end end ) Link to comment
Mbtdaa Posted January 27, 2014 Author Share Posted January 27, 2014 (edited) جاري تجربة كنق + انا عارف وضيفة الكود ياحبايب Edited January 27, 2014 by Guest Link to comment
Mbtdaa Posted January 27, 2014 Author Share Posted January 27, 2014 شغل تماام يعطيكم العافية شباب على ردودكم ويعطيك العافية كنق حبيبي على التصحيح بس حبيت اسالكم سؤال اخير لو ماعليكم امر ( source ) وش وضيفتها بظبط ؟ Link to comment
Do_De<3 Posted January 27, 2014 Share Posted January 27, 2014 شغل تماام يعطيكمالعافية شباب على ردودكم ويعطيك العافية كنق حبيبي على التصحيح بس حبيت اسالكم سؤال اخير لو ماعليكم امر ( source ) وش وضيفتها بظبط ؟ هذآ السورس هو حدث لـ لاعب و ممكن يكون اوبجيكت او ماركر او سيارة Link to comment
Do_De<3 Posted January 27, 2014 Share Posted January 27, 2014 (edited) addEventHandler("onPlayerLogin") function (admin) if isObjectInACLGroup("user."..getAccountName(admin), aclGetGroup("Admin")) then outputChatBox (..getPlayerName(admin)"Admin login.!"255,255,255 end end) كنق ترى مو انا الي مسوي الكود : ) صآحب الموضوع هو الي مسويه : ) انا مقتبسهه بس : ) Edited January 27, 2014 by Guest Link to comment
Mbtdaa Posted January 27, 2014 Author Share Posted January 27, 2014 شغل تماام يعطيكمالعافية شباب على ردودكم ويعطيك العافية كنق حبيبي على التصحيح بس حبيت اسالكم سؤال اخير لو ماعليكم امر ( source ) وش وضيفتها بظبط ؟ هذآ السورس هو حدث لـ لاعب و ممكن يكون اوبجيكت او ماركر او سيارة اها طيب وضحت لي المعلومة يعطيكم العافية ياخوان *_* 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