Jump to content

not work script pls fix


Recommended Posts

hello

pls fix

local adminName, message
addEvent("Announce",true)
function Announce(admin,msg)
adminName = getPlayerName(admin)
message = msg
addEventHandler("onClientRender",getRootElement(),drawAnn)
setTimer(function() removeEventHandler("onClientRender",getRootElement(),drawAnn) adminName = nil message = nil end,0,0)
end
addEventHandler("Announce",getRootElement(),Announce)
 
function drawAnn()
local sw,sh = guiGetScreenSize()
--   dxDrawText(tostring(message),sw*0.03541,sh*0.35,sw*0.95833,sh*0.41111,tocolor(255,255,0,255),((sw/100)/(sh/100))-0.6,"default-bold","","",false,false,false)
--   dxDrawText("ADMIN: "..adminName,sw*0.33472,sh*0.23888,sw*0.65277,sh*0.34777,tocolor(255,0,0,200),((sw/100)/(sh/100))-0.6,"default-bold","","",false,false,false)
 
dxDrawText(tostring(message),sw*0.10000,sh*0.35,sw*0.95833,sh*0.41111,tocolor(255,255,0,255),1,"default","","",false,false,false)
dxDrawText("ADMIN:",sw*0.03541,sh*0.35,sw*0.105833,sh*0.41111,tocolor(255,0,0,200),1,"default","","",false,false,false)
end

:roll:

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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