Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2014-09-02, 21:20


mrmay4141

KOR Gaming Innovator






Wiek: 29
Na forum: 5001 dni
Posty: 86
Nick w MP: Sexyvise

Piwa: 4

Respekt: 50

Ostrzeżeń: 20%
Cze??, mam pewien kod na shout'y. Lecz chcia?bym, aby?cie mi zmienili pozycje napisu tak aby shout by? na ?rodku lecz na samej g?rze ekranu.

function shout(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 nombre = getPlayerName(player)
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("You don't have permission to use this command!",player,255,12,15)
    end
end

addCommandHandler("shout", shout)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-09-02, 21:51


MeeShuffle

Programista/Grafik






Wiek: 33
Na forum: 4535 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8578

Respekt: 535,3
Respekt: 535,3

local textItem = textCreateTextItem( ""..message, 0.5, 0.5, 2, 205, 0, 0, 255, 3, "center", "center" )



center to ?rodek bottom to d?? top to g?ra.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Tagi: zmiana :: shouta
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku