Jump to content

تصحيح وتكملت الأكواد


GAME_OVER!!

Recommended Posts

بسم الله الرحمن الرحيم

السلام عليكم ورحمة الله وبركاته

صادفتني صعوبات بالاكواد وصارلي كم خطأ الاكواد

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...