MA[S]RIY Posted March 30, 2017 Share Posted March 30, 2017 السلام عليكم ابي كود لو شخص معه رتبه وكتب امر باف 8 يطلع نص بالشات ولو م معه الرتبه ذي يطلعلو بالشات انت لا تمتلك الصلاحيات Link to comment
iMr.WiFi..! Posted March 30, 2017 Share Posted March 30, 2017 addCommandHandler getPlayerAccount getAccountName if isGuestAccount return outputChatBox -- You Can't if isObjectInACLGroup outputChatBox -- Message else outputChatBox -- You Can't Link to comment
MA[S]RIY Posted March 30, 2017 Author Share Posted March 30, 2017 اخي كده مظبوط addCommandHandler ( "kkk", if not isGuestAccount(getPlayerAccount(source)) then return outputChatBox ("xxxxxxxxxxxxxxxxxxxxx", root, 223, 202, 8, true ) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then outputChatBox ("*********************", root, 223, 202, 8, true ) else outputChatBox ("xxxxxxxxxxxxxxxxxxxxx", root, 223, 202, 8, true ) ولو غلط علو وصلحو من فضلك Link to comment
iMr.WiFi..! Posted March 30, 2017 Share Posted March 30, 2017 ناقص end في السطر الثالث وكمان ماسويت فنكشن في السطر الاول وماقفلت القوس وحطيت اند في اخر الاسطر Link to comment
MA[S]RIY Posted March 30, 2017 Author Share Posted March 30, 2017 (edited) function() addCommandHandler ( "kkk", if not isGuestAccount(getPlayerAccount(source)) then return outputChatBox ("xxxxxxxxxxxxxxxxxxxxx", root, 223, 202, 8, true ) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then outputChatBox ("*********************", root, 223, 202, 8, true ) else outputChatBox ("xxxxxxxxxxxxxxxxxxxxx", root, 223, 202, 8, true ) end end ) end كده صح ؟ Edited March 30, 2017 by MA[S]RIY Link to comment
Ahmed Ly Posted March 30, 2017 Share Posted March 30, 2017 addCommandHandler("kkk", function(playersource) if not isGuestAccount(getPlayerAccount(playersource)) then if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(playersource)), aclGetGroup("Console")) then outputChatBox("*********************",playersource, 223, 202, 8, true ) else outputChatBox("xxxxxxxxxxxxxxxxxxxxx",playersource, 223, 202, 8, true ) end else outputChatBox("xxxxxxxxxxxxxxxxxxxxx",playersource, 223, 202, 8, true ) 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