Saudi Server Posted August 19, 2010 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
50p Posted August 19, 2010 Posted August 19, 2010 https://forum.multitheftauto.com/viewtop ... 91&t=27027 - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
Castillo Posted August 19, 2010 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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
dzek (varez) Posted August 20, 2010 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. 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)!
Recommended Posts