Jump to content

not work script pls fix


Recommended Posts

Posted

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:

Posted

I guess this code is stealed cause he only posted the client side part and that uses server too if i'm right.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

indeed its lacking server side.

We are not supporting stealing scripts here. We are not here requests eighter. Come back when you get stuck on scripting own resource.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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

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