Saudi Server Posted August 19, 2010 Share Posted August 19, 2010 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 Link to comment
50p Posted August 19, 2010 Share Posted August 19, 2010 https://forum.multitheftauto.com/viewtop ... 91&t=27027 Link to comment
Castillo Posted August 19, 2010 Share Posted August 19, 2010 I guess this code is stealed cause he only posted the client side part and that uses server too if i'm right. Link to comment
dzek (varez) Posted August 20, 2010 Share Posted August 20, 2010 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. Link to comment
Recommended Posts