~Mr.Hassan Posted August 17, 2015 Posted August 17, 2015 شباب اجتني مشكله الحين بكودي يقلي كذا شو يعني
Naif Posted August 17, 2015 Posted August 17, 2015 م أدري وش بـ الظبط ناقصك اند ولا مدري اطرح الكود نشوف + خليك بموضوع وأحد ..
~Mr.Hassan Posted August 17, 2015 Author Posted August 17, 2015 addCommandHandler ( "madmin" , function ( player ) if ( getElementType ( player ) == ( "player" ) ) then if not ( isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Console" ) ) ) then return setElementPosition ( player, 2481.50659,-1703.26233,13.52803 ) outputChatBox("تم نقلك الى مقر الادمنية !! / It was taken to the Base of the Admins !!",player,255,0,0) else setElementPosition ( Player, 2484.42725,-1672.45129,13.33595) ) outputChatBox("لقد خرجت من مقر الادمنية / You Now Exit For Base Admins",player,255,0,0) else outputChatBox("You Moust Be in Group Admin ! / يجب ان تكون في قروب ادمن",player,255,0,0) end end end )
Naif Posted August 17, 2015 Posted August 17, 2015 تفضل state = true addCommandHandler ( "madmin" , function ( player ) if ( isObjectInACLGroup('user.'..getAccountName(getPlayerAccount(player)),aclGetGroup ('Console') ) ) then if ( state == true ) then setElementPosition ( player, 2481.50659,-1703.26233,13.52803 ) outputChatBox("تم نقلك الى مقر الادمنية !! / It was taken to the Base of the Admins !!",player,255,0,0) state = false; else setElementPosition ( player, 2484.42725,-1672.45129,13.33595) state = true; outputChatBox("لقد خرجت من مقر الادمنية / You Now Exit For Base Admins",player,255,0,0) end else outputChatBox("You Moust Be in Group Admin ! / يجب ان تكون في قروب ادمن",player,255,0,0) end end )
MR.GRAND Posted August 17, 2015 Posted August 17, 2015 addCommandHandler ( "madmin" , function ( player ) if ( getElementType ( player ) == ( "player" ) ) then if not ( isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Console" ) ) ) then return setElementPosition ( player, 2481.50659,-1703.26233,13.52803 ) outputChatBox("تم نقلك الى مقر الادمنية !! / It was taken to the Base of the Admins !!",player,255,0,0) else setElementPosition ( Player, 2484.42725,-1672.45129,13.33595) ) outputChatBox("لقد خرجت من مقر الادمنية / You Now Exit For Base Admins",player,255,0,0) else outputChatBox("You Moust Be in Group Admin ! / يجب ان تكون في قروب ادمن",player,255,0,0) end end end ) انت حاط الكود لو اتحقق إنك كونسل مايوديك لمقر الادمنية اللي انت مسويه
N3xT Posted August 17, 2015 Posted August 17, 2015 addCommandHandler ( "madmin" , function ( player ) if ( getElementType ( player ) == ( "player" ) ) then if not ( isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Console" ) ) ) then return setElementPosition ( player, 2481.50659,-1703.26233,13.52803 ) outputChatBox("تم نقلك الى مقر الادمنية !! / It was taken to the Base of the Admins !!",player,255,0,0) else setElementPosition ( Player, 2484.42725,-1672.45129,13.33595) ) outputChatBox("لقد خرجت من مقر الادمنية / You Now Exit For Base Admins",player,255,0,0) else outputChatBox("You Moust Be in Group Admin ! / يجب ان تكون في قروب ادمن",player,255,0,0) end end end
N3xT Posted August 17, 2015 Posted August 17, 2015 addCommandHandler ( "madmin" , function ( player ) if ( getElementType ( player ) == ( "player" ) ) then if not ( isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Console" ) ) ) then return setElementPosition ( player, 2481.50659,-1703.26233,13.52803 ) outputChatBox("تم نقلك الى مقر الادمنية !! / It was taken to the Base of the Admins !!",player,255,0,0) else setElementPosition ( Player, 2484.42725,-1672.45129,13.33595) ) outputChatBox("لقد خرجت من مقر الادمنية / You Now Exit For Base Admins",player,255,0,0) else outputChatBox("You Moust Be in Group Admin ! / يجب ان تكون في قروب ادمن",player,255,0,0) end end end ) انت حاط الكود لو اتحقق إنك كونسل مايوديك لمقر الادمنية اللي انت مسويه أفهم الكود كامل return وشوف الـ
Naif Posted August 17, 2015 Posted August 17, 2015 كودي صحيح , ليه تحط كود من عندك edit : ليه تسوي تحقق ان الي يكتب لاعب يعني مثلا ماركر بيكتب ؟
MR.GRAND Posted August 17, 2015 Posted August 17, 2015 addCommandHandler ( "madmin" , function ( player ) if ( getElementType ( player ) == ( "player" ) ) then if not ( isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Console" ) ) ) then return setElementPosition ( player, 2481.50659,-1703.26233,13.52803 ) outputChatBox("تم نقلك الى مقر الادمنية !! / It was taken to the Base of the Admins !!",player,255,0,0) else setElementPosition ( Player, 2484.42725,-1672.45129,13.33595) ) outputChatBox("لقد خرجت من مقر الادمنية / You Now Exit For Base Admins",player,255,0,0) else outputChatBox("You Moust Be in Group Admin ! / يجب ان تكون في قروب ادمن",player,255,0,0) end end end ) انت حاط الكود لو اتحقق إنك كونسل مايوديك لمقر الادمنية اللي انت مسويه أفهم الكود كامل return وشوف الـ احح ماشفتها ضض1
iMr.SFA7 Posted August 17, 2015 Posted August 17, 2015 addCommandHandler ( "madmin" , function ( player ) if ( getElementType ( player ) == ( "player" ) ) then if not ( isObjectInACLGroup ("user."..getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Console" ) ) ) then return setElementPosition ( player, 2481.50659,-1703.26233,13.52803 ) outputChatBox("تم نقلك الى مقر الادمنية !! / It was taken to the Base of the Admins !!",player,255,0,0) else setElementPosition ( Player, 2484.42725,-1672.45129,13.33595) ) outputChatBox("لقد خرجت من مقر الادمنية / You Now Exit For Base Admins",player,255,0,0) else outputChatBox("You Moust Be in Group Admin ! / يجب ان تكون في قروب ادمن",player,255,0,0) end end end أول شيء تتحقق أن الي كتب الأمر هو لاعب ؟ لا مثلاً الأوبجكت يجي يكتب ؟ في سطر 8 عندك خطأ بكلمة بلاير عندك قوس ناقص | =
N3xT Posted August 17, 2015 Posted August 17, 2015 أولاً ، انا كل اللي سويته رتبت الكود لا أكثر ولا أقل : )
iMr.SFA7 Posted August 17, 2015 Posted August 17, 2015 أولاً ، انا كل اللي سويته رتبت الكود لا أكثر ولا أقل : ) شكلك شغآل مرتب آكواد | =
N3xT Posted August 18, 2015 Posted August 18, 2015 أولاً ، انا كل اللي سويته رتبت الكود لا أكثر ولا أقل : ) شكلك شغآل مرتب آكواد | = هه , سؤال بس وش الفايدة من سماجتك ذي ؟
iMr.SFA7 Posted August 18, 2015 Posted August 18, 2015 هه , سؤال بس وش الفايدة من سماجتك ذي ؟ هاذي مهيب سماجة بس من جد شغال مرتب أكواد ؟ صاحب الموضوع قال صححوه مهوب تنسخ كوده وتحكه وتقول رتبت الكود
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