GAME_OVER!! Posted September 29, 2012 Share Posted September 29, 2012 بسم الله الرحمن الرحيم السلام عليكم ورحمة الله وبركاته صادفتني صعوبات بالاكواد وصارلي كم خطأ الاكواد function t(player) for id, players in ipairs(getElementsByType("player")) do local message = table.concat "..message" local textDisplay = textCreateDisplay () local textItem = textCreateTextItem( "..message", 0.5, 0.5, 2, 205, 0, 0, 255, 3, "center") textDisplayAddText ( textDisplay, textItem ) textDisplayAddObserver ( textDisplay, players ) end else outputChatBox("**Shout Admin",player,255,12,15) end end addCommandHandler("shout", t) ياريت تصححونه وتخلون الكلام يختفي وابيه يكون للأدمن Link to comment
hassan.k.s.a Posted September 29, 2012 Share Posted September 29, 2012 function t(player, cmd, ...) local accountname = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user."..accountname, aclGetGroup ( "Admin" )) then for id, players in ipairs(getElementsByType("player")) do local message = table.concat({...}," ") local textDisplay = textCreateDisplay () local textItem = textCreateTextItem( ""..message, 0.5, 0.5, 2, 205, 0, 0, 255, 3, "center", "center" ) textDisplayAddText ( textDisplay, textItem ) textDisplayAddObserver ( textDisplay, players ) setTimer ( textDestroyTextItem, 5000, 1, textItem ) setTimer ( textDestroyDisplay, 5000, 1, textDisplay ) end else outputChatBox("**Shout Admin",player,255,12,15) end end addCommandHandler("adminshout", t) Link to comment
GAME_OVER!! Posted September 29, 2012 Author Share Posted September 29, 2012 مشكور حسن ربي يعطيك الف عافيه ماقصرت مبدع والله Link to comment
hassan.k.s.a Posted September 29, 2012 Share Posted September 29, 2012 حيآك الله العفو 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