Jump to content

وش الخطا هنا


Recommended Posts

الكلام ما عاد يطلع - وش الخطا بسطر 6 - الاحداثيات - انا ابيه يظهر تحت الشاشة  في الوسط مب يظهر في النصف فا عدلته وذي محاولتي الفاشلة

function shout ( player, cmd, ... )
    local accountname = getAccountName ( getPlayerAccount ( player ) )
    if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then
        local message = table.concat ( { ... }," " )
        textDisplay = textCreateDisplay ( )
        textItem = textCreateTextItem ( message, 329, 619, 990, 733, tocolor(255, 255, 255, 255), 1.00, "beckett", "left", "top", false, false, false, false, false)
        textDisplayAddText ( textDisplay, textItem )
        for _, thePlayer in ipairs ( getElementsByType ( "player" ) ) do
            textDisplayAddObserver ( textDisplay, thePlayer )
        end
        setTimer (
            function ( )
                textDestroyTextItem ( textItem )
                textDestroyDisplay ( textDisplay )
            end
            ,10000, 1
        )
    else
        outputChatBox ( "You cannot use this command!", player, 255, 12, 15 )
    end
end
addCommandHandler ( "shoutall", shout )

 

Link to comment
On 4/13/2017 at 18:10, Deativated said:

فاضل , لك

تحقق ان الاعب مسجل الدخول

وسوي

مثل م المثال بالويكي جاهز


myTextItem = textCreateTextItem ( "Hello world!", 0.5, 0.5 )  -- create text item for the display
textDisplayAddText ( myDisplay, myTextItem )   

 

لا تحط 


tocolor

 

ما فهمت :/

سويها لي طيب ! حطها بالكود

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