Jump to content

Lucario

Members
  • Posts

    153
  • Joined

  • Last visited

Everything posted by Lucario

  1. Hi, i im now making a police job with freeze pistol when a cop shoot a criminal, when i shoot a crim, it say, bad argument @getPlayerTeam, and if someone jail me, the timer doesnt work in the jail, and the handcuffer doesnt recieve the money, someone can help me please, part of the Code: All server side: function pistolaCong (attacker, attackerweapon, bodypart, loss) if attacker and getElementType(attacker) == "player" then theTeam2 = getPlayerTeam ( attacker ) theWL2 = getPlayerWantedLevel ( source ) theSkin2 = getElementModel ( attacker ) if (attackerweapon == 23) and (loss > 1) and (theWL2 > 0) then if getTeamName( theTeam2 ) == "Policia" or getTeamName( theTeam2 ) == "SWAT" or getTeamName( theTeam2 ) == "FBI" or getTeamName( theTeam2 ) == "Ejercito" then fadeCamera ( source, true, 2.0, 191, 191, 191 ) setTimer ( setElementFrozen, 3000, 1, source, false) end end end end addEventHandler ("onPlayerDamage", getRootElement(), pistolaCong) function trabajoPolicia ( attacker, attackerweapon, bodypart, loss ) if attacker and getElementType(attacker) == "player" then theTeam = getPlayerTeam ( attacker ) theWL = getPlayerWantedLevel ( source ) theSkin = getElementModel ( attacker ) if (attackerweapon == 3) and (loss > 2 ) then if getTeamName( theTeam ) == "Policia" or getTeamName( theTeam ) == "SWAT" or getTeamName( theTeam ) == "FBI" or getTeamName( theTeam ) == "Ejercito" then setElementPosition (source, 3306.1, 1195.7, 945, true) theName = getPlayerName ( source ) theCop = getPlayerName ( attacker ) warnText( "Has Sido Encarcelado Por "..theCop.. ".", source ) warnText( "Has Encarcelado a "..theName, attacker ) local playeraccount = getPlayerAccount ( attacker ) oldArrest = getAccountData(playeraccount, "arrest") if oldArrest then newArrest = setAccountData(playeraccount, "arrest", tonumber(oldArrest) + 1 ) else newArrest = setAccountData(playeraccount, "arrest", 1 ) end setPlayerWantedLevel (source, 0) if ( theWL > 1 ) then setTimer ( setElementPosition, 20000, 1, source, 1544.4332275391, -1674.7698974609, 13.688399200439) givePlayerMoney (attacker, 3000 * theWL ) end if ( theWL > 2 ) then setTimer ( setElementPosition, 40000, 1, source, 1544.4332275391, -1674.7698974609, 13.688399200439) givePlayerMoney (attacker, 6000 * theWL ) end if ( theWL > 3 ) then setTimer ( setElementPosition, 60000, 1, source, 1544.4332275391, -1674.7698974609, 13.688399200439) givePlayerMoney (attacker, 9000 * theWL ) end if ( theWL > 4 ) then setTimer ( setElementPosition, 80000, 1, source, 1544.4332275391, -1674.7698974609, 13.688399200439) givePlayerMoney (attacker, 12000 * theWL ) end if ( theWL > 5 ) then setTimer ( setElementPosition, 100000, 1, source, 1544.4332275391, -1674.7698974609, 13.688399200439) givePlayerMoney (attacker, 15000 * theWL ) end if ( theWL > 6 ) then setTimer ( setElementPosition, 120000, 1, source, 1544.4332275391, -1674.7698974609, 13.688399200439) givePlayerMoney (attacker, 18000 * theWL ) end end end end end addEventHandler ("onPlayerDamage", getRootElement(), trabajoPolicia)
  2. Thank you friend you are the best , i think, now i dont put the top list, i will put the server info, you win a admirator
  3. But the gui is mine i have maked yesterday in guieditor, i only take the xml save,
  4. function downoad () downloadFile ( "46.txd" ) end addEventHandler ( "onClientResourceStart", resourceRoot, downnoad ) Put it to client side
  5. im not lua pro to write scripts by myself, i can only write scripts like create restricted vehicles with command or marker, but a login panel make is so difficult, i have maked the other, but the xml im begin with this, can you fix it please
  6. I will thank you if you give me a example pd: the panel have no errors now, i have seen in debugscript and server console test, but the buttons dont work, can you help me please or fix it, recent topic of the problem: viewtopic.php?f=91&t=59186
  7. Hi, i have finished the login panel, no problem outputs, in debugscript, and server console test, but the buttons, when i click. doesnt work, doesnt log me and register me, the script is fully maked by me, i now use xml, keep my rights Client: GUIEditor = { checkbox = {}, staticimage = {}, edit = {}, button = {}, window = {}, label = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() ventanalogin = guiCreateWindow(193, 39, 887, 694, "Panel de Login Juramento", false) guiWindowSetSizable(ventanalogin, false) top = guiCreateMemo(9, 434, 868, 250, "", false, ventanalogin) juralogo = guiCreateStaticImage(14, 26, 267, 208, ":login_panel/logo.png", false, ventanalogin) usuario = guiCreateLabel(286, 76, 147, 41, "Usuario:", false, ventanalogin) guiSetFont(usuario, "sa-header") clave = guiCreateLabel(286, 149, 192, 40, "Contraseña:", false, ventanalogin) guiSetFont(clave, "sa-header") Edit_Login = guiCreateEdit(482, 76, 159, 41, "", false, ventanalogin) Edit_Password = guiCreateEdit(483, 149, 159, 40, "", false, ventanalogin) lgnBtn = guiCreateButton(684, 86, 193, 91, "Entrar", false, ventanalogin) guiSetFont(lgnBtn, "sa-header") guiSetProperty(lgnBtn, "NormalTextColour", "FF0000FF") guardar1 = guiCreateCheckBox(651, 159, 15, 16, "", true, false, ventanalogin) guardar2 = guiCreateCheckBox(651, 86, 15, 15, "", true, false, ventanalogin) recordar = guiCreateLabel(578, 27, 172, 39, "-Recordar-", false, ventanalogin) guiSetFont(recordar, "sa-header") usuario2 = guiCreateLabel(285, 265, 192, 41, "Usuario:", false, ventanalogin) guiSetFont(usuario2, "sa-header") clave2 = guiCreateLabel(285, 340, 192, 41, "Contraseña:", false, ventanalogin) guiSetFont(clave2, "sa-header") Edit_Login2 = guiCreateEdit(482, 265, 159, 41, "", false, ventanalogin) Edin_Password2 = guiCreateEdit(482, 340, 159, 41, "", false, ventanalogin) RgsBtn = guiCreateButton(684, 275, 193, 101, "Registrarse", false, ventanalogin) guiSetFont(RgsBtn, "sa-header") showCursor(true) info = guiCreateMemo(14, 241, 267, 183, "Bienvenid@ a Juramento Freeroam.\n\nAqui Disfrutaran de Skins, Carros Reales, Carreras, Eventos, Trabajos, Zombies, Clanes, Y Mucho Mas.\n\nForo Oficial:\n[url=http://www.mtajuraclan.foroactivo.com]http://www.mtajuraclan.foroactivo.com[/url]\n\nSitio Oficial:\n[url=http://www.mtajuraclan.blogspot.com]http://www.mtajuraclan.blogspot.com[/url]", false, ventanalogin) end ) local username, password = loadLoginFromXML if( username == "" or password == "") then guiCheckBoxSetSelected ( guardar1, true ) guiSetText ( Edit_Login, tostring(username)) guiCheckBoxSetSelected ( guardar2, true ) guiSetText ( Edit_Password, tostring(password)) end function cerrarPanel () guiSetVisible(ventanalogin,false) showCursor(false) addEvent("cerrar",true) addEventHandler("cerrar",getRootElement(),cerrarPanel) end function onRegisterKlick () if(button == "left" and state == "up") then if (source == RgsBtn) then local username = guiGetText(Edit_Login2) local password = guiGetText(Edit_Password2) triggerServerEvent("register",getLocalPlayer(),username,password) showCursor(false) addEventHandler("onClientGUIClick",RgsBtn,onRegisterKlick) end end end function onLoginKlick () if(button == "left" and state == "up") then if (source == lgnBtn) then local username = guiGetText(Edit_Login) local password = guiGetText(Edit_Password) if guiCheckBoxGetSelected ( guardar1 ) == true then checksave = true else checksave = false end triggerServerEvent("login",getLocalPlayer(),username,password,checksave) showCursor(false) addEventHandler("onClientGUIClick",lgnBtn,onLoginKlick,false) end end end function loadLoginFromXML() local xml_save_log_File = xmlLoadFile ("files/xml/userdata.xml") if not xml_save_log_File then xml_save_log_File = xmlCreateFile("files/xml/userdata.xml", "login") end local usernameNode = xmlFindChild (xml_save_log_File, "username", 0) local passwordNode = xmlFindChild (xml_save_log_File, "password", 0) if usernameNode and passwordNode then return xmlNodeGetValue(usernameNode), xmlNodeGetValue(passwordNode) else return "", "" end xmlUnloadFile ( xml_save_log_File ) end function saveLoginToXML(username, password) local xml_save_log_File = xmlLoadFile ("files/xml/userdata.xml") if not xml_save_log_File then xml_save_log_File = xmlCreateFile("files/xml/userdata.xml", "login") end if (username ~= "") then local usernameNode = xmlFindChild (xml_save_log_File, "username", 0) if not usernameNode then usernameNode = xmlCreateChild(xml_save_log_File, "password") end xmlNodeSetValue (usernameNode, tostring(username)) end if (password ~= "") then local passwordNode = xmlFindChild (xml_save_log_File, "username", 0) if not passwordNode then passwordNode = xmlCreateChild(xml_save_log_File, "password") end xmlNodeSetValue (passwordNode, tostring(password)) end xmlSaveFile(xml_save_log_File) xmlUnloadFile (xml_save_log_File) addEvent("saveLoginToXML", true) addEventHandler("saveLoginToXML", getRootElement(), saveLoginToXML) end function resetSaveXML() local xml_save_log_File = xmlLoadFile ("files/xml/userdata.xml") if not xml_save_log_File then xml_save_log_File = xmlCreateFile("files/xml/userdata.xml", "login") end if (username ~= "") then local usernameNode = xmlFindChild (xml_save_log_File, "username", 0) if not usernameNode then usernameNode = xmlCreateChild(xml_save_log_File, "username") end end if (password ~= "") then local passwordNode = xmlFindChild (xml_save_log_File, "password", 0) if not passwordNode then passwordNode = xmlCreateChild(xml_save_log_File, "password") end xmlNodeSetValue (passwordNode, "") end xmlSaveFile(xml_save_log_File) xmlUnloadFile (xml_save_log_File) addEvent("resetSaveXML", true) addEventHandler("resetSaveXML", getRootElement(), resetSaveXML) end Server: function register_func ( player, username, passwort) local acc = addAccount(username,passwort) if acc then logIn(player,acc,passwort) triggerClientEvent(player,"cerrar",player) outputChatBox("Has Sido Registrado Con Exito!",player,0,255,0) if checksave == true then triggerClientEvent(source,"saveLoginToXML",getRootElement(),username,password) else triggerClientEvent(source,"resetSaveXML",getRootElement(),username,password) end else outputChatBox("Esta Cuenta Ya Existe",player,255,0,0) addEvent("register",true) addEventHandler("register", getRootElement(),register_func) end end function login_func ( player, username, passwort) if not (username == "") then if not (password == "") then if not (passwordConfirm == "") then if password == passwordConfirm then local account = getAccount (username,password) if (account == false) then local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then outputChatBox("Identificacion Correcta. Disfruta del Servidor!",player,0,255,0) else outputChatBox ("Ha Ocurrido una Error, Por Favor Intentalo de Nuevo.",source,255,0,0,true ) end else outputChatBox ("Una Cuenta con Este Nombre de Usuario Ya Existe!",source,255,0,0,true ) end else outputChatBox ("La Contraseña no Coincide!",source,255,0,0,true) end else outputChatBox ("Por Favor Confirma Tu Contraseña!",source,0,0,255,true) end else outputChatBox ("Por Favor Escribe la Contraseña!",source,0,0,255,true) end else outputChatBox ("Por Favor Escribe el Usuario Con el Cual Quiere Registrarse!",source,0,0,255,true) addEvent("login",true) addEventHandler("login",getRootElement(),login_func) end end Can anyone fix please, thanks
  8. Mysql is too difficult for me, how i can fix the error i post after, and i dont want to add a scoreboard column, i want to add top list (stats) to the memo in the code i have posted
  9. Pasa el client side tambien, puede que sea problema con eso, si no tienes el client no funcionara
  10. I have just finished the login panel, but i have a very bad error, attempt to load global load xmlLoginFromXML a nil value, here is the code, i used debugscript 3: GUIEditor = { checkbox = {}, staticimage = {}, edit = {}, button = {}, window = {}, label = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() ventanalogin = guiCreateWindow(193, 39, 887, 694, "Panel de Login Juramento", false) guiWindowSetSizable(ventanalogin, false) top = guiCreateMemo(9, 434, 868, 250, "", false, ventanalogin) juralogo = guiCreateStaticImage(14, 26, 267, 208, ":login_panel/logo.png", false, ventanalogin) usuario = guiCreateLabel(286, 76, 147, 41, "Usuario:", false, ventanalogin) guiSetFont(usuario, "sa-header") clave = guiCreateLabel(286, 149, 192, 40, "Contraseña:", false, ventanalogin) guiSetFont(clave, "sa-header") Edit_Login = guiCreateEdit(482, 76, 159, 41, "", false, ventanalogin) Edit_Password = guiCreateEdit(483, 149, 159, 40, "", false, ventanalogin) lgnBtn = guiCreateButton(684, 86, 193, 91, "Entrar", false, ventanalogin) guiSetFont(lgnBtn, "sa-header") guiSetProperty(lgnBtn, "NormalTextColour", "FF0000FF") guardar1 = guiCreateCheckBox(651, 159, 15, 16, "", true, false, ventanalogin) guardar2 = guiCreateCheckBox(651, 86, 15, 15, "", true, false, ventanalogin) recordar = guiCreateLabel(578, 27, 172, 39, "-Recordar-", false, ventanalogin) guiSetFont(recordar, "sa-header") usuario2 = guiCreateLabel(285, 265, 192, 41, "Usuario:", false, ventanalogin) guiSetFont(usuario2, "sa-header") clave2 = guiCreateLabel(285, 340, 192, 41, "Contraseña:", false, ventanalogin) guiSetFont(clave2, "sa-header") Edit_Login2 = guiCreateEdit(482, 265, 159, 41, "", false, ventanalogin) Edin_Password2 = guiCreateEdit(482, 340, 159, 41, "", false, ventanalogin) RgsBtn = guiCreateButton(684, 275, 193, 101, "Registrarse", false, ventanalogin) guiSetFont(RgsBtn, "sa-header") showCursor(true) info = guiCreateMemo(14, 241, 267, 183, "Bienvenid@ a Juramento Freeroam.\n\nAqui Disfrutaran de Skins, Carros Reales, Carreras, Eventos, Trabajos, Zombies, Clanes, Y Mucho Mas.\n\nForo Oficial:\n[url=http://www.mtajuraclan.foroactivo.com]http://www.mtajuraclan.foroactivo.com[/url]\n\nSitio Oficial:\n[url=http://www.mtajuraclan.blogspot.com]http://www.mtajuraclan.blogspot.com[/url]", false, ventanalogin) end ) if not( username == "" or password == "") then guiCheckBoxSetSelected ( guardar1, true ) guiSetText ( Edit_Login, tostring(username)) guiCheckBoxSetSelected ( guardar2, true ) guiSetText ( Edit_Password, tostring(password)) else guiCheckBoxSetSelected ( guardar1, false ) guiSetText ( Edit_Login, tostring(username)) guiCheckBoxSetSelected ( guardar2, false ) guiSetText ( Editn-Password, tostring(password)) end addEventHandler("onClientGUIClick",lgnBtn,onClickBtnLogin) addEventHandler("onClientGUIClick",RgsBtn,onClickBtnRegister) function onRegisterKlick () local username = guiGetText(username) local password = guiGetText(password) if username ~= "" and password ~= "" then triggerServerEvent("register",getLocalPlayer(),getLocalPlayer(),username,password) showCursor(false) end end addEventHandler("onClientGUIClick",RgsBtn,onRegisterKlick,false) function onLoginKlick () local username = guiGetText(username) local password = guiGetText(password) if username ~= "" and password ~= "" then triggerServerEvent("login",getLocalPlayer(),getLocalPlayer(),username,password) showCursor(false) end end addEventHandler("onClientGUIClick",lgnBtn,onLoginKlick,false) function loadLoginFromXML() local xml_save_log_File = xmlLoadFile ("files/xml/userdata.xml") if not xml_save_log_File then xml_save_log_File = xmlCreateFile("files/xml/userdata.xml", "login") end local usernameNode = xmlFindChild (xml_save_log_File, "username", 0) local passwordNode = xmlFindChild (xml_save_log_File, "password", 0) if usernameNode and passwordNode then return xmlNodeGetValue(usernameNode), xmlNodeGetValue(passwordNode) else return "", "" end xmlUnloadFile ( xml_save_log_File ) end function saveLoginToXML(username, password) local xml_save_log_File = xmlLoadFile ("files/xml/userdata.xml") if not xml_save_log_File then xml_save_log_File = xmlCreateFile("files/xml/userdata.xml", "login") end if (username ~= "") then local usernameNode = xmlFindChild (xml_save_log_File, "username", 0) if not usernameNode then usernameNode = xmlCreateChild(xml_save_log_File, "password") end xmlNodeSetValue (usernameNode, tostring(username)) end if (password ~= "") then local passwordNode = xmlFindChild (xml_save_log_File, "username", 0) if not passwordNode then passwordNode = xmlCreateChild(xml_save_log_File, "password") end xmlNodeSetValue (passwordNode, tostring(password)) end xmlSaveFile(xml_save_log_File) xmlUnloadFile (xml_save_log_File) end addEvent("saveLoginToXML", true) addEventHandler("saveLoginToXML", getRootElement(), saveLoginToXML) function resetSaveXML() local xml_save_log_File = xmlLoadFile ("files/xml/userdata.xml") if not xml_save_log_File then xml_save_log_File = xmlCreateFile("files/xml/userdata.xml", "login") end if (username ~= "") then local usernameNode = xmlFindChild (xml_save_log_File, "username", 0) if not usernameNode then usernameNode = xmlCreateChild(xml_save_log_File, "username") end end if (password ~= "") then local passwordNode = xmlFindChild (xml_save_log_File, "password", 0) if not passwordNode then passwordNode = xmlCreateChild(xml_save_log_File, "password") end xmlNodeSetValue (passwordNode, "") end xmlSaveFile(xml_save_log_File) xmlUnloadFile (xml_save_log_File) end addEvent("resetSaveXML", true) addEventHandler("resetSaveXML", getRootElement(), resetSaveXML) And i have the top list empty, for put the top list, how i can put there the top list, top killer, top dier, top richer, top drifter, etc.
  11. ok thanks i will try and tell you
  12. I want it from scoreboard, and others scripts, like police job, i want to create a top memo list whan refresh every 5 seconds, in the login panel
  13. Get the text? from where, from the scoreboard?
  14. Hi all, i want to create a top memo list for a alredy created login panel, like cit, but with other options, top killer, top dier, top drifter, top richer, top with more ping, top cop, top gang with more members, top player with more time, top player with more level (experience) and top player with more ratio, like scoreboard, and refresh it every 5 seconds, what i must use? My login panel client code (where must be the memo): label = {} ventanalogin = guiCreateWindow(102, 167, 636, 280, "", false) guiWindowSetSizable(ventanalogin, false) guiSetAlpha(ventanalogin, 0.90) lgnBtn = guiCreateButton(9, 228, 134, 37, "Entrar", false, ventanalogin) RgsBtn = guiCreateButton(145, 228, 134, 37, "Registrarse", false, ventanalogin) InvBtn = guiCreateButton(281, 228, 134, 37, "Entrar como invitado", false, ventanalogin) somos = guiCreateButton(9, 199, 141, 23, "¿Quienes somos?", false, ventanalogin) juralogo = guiCreateStaticImage(9, 16, 411, 121, "logo.png", false, ventanalogin) label[1] = guiCreateLabel(15, 141, 45, 15, "Usuario:", false, ventanalogin) label[2] = guiCreateLabel(15, 176, 65, 15, "Contraseña:", false, ventanalogin) usuario = guiCreateEdit(61, 139, 179, 20, "", false, ventanalogin) clave = guiCreateEdit(81, 174, 179, 20, "", false, ventanalogin) info = guiCreateLabel(425, 27, 205, 166, "Bienvenido a Juramento Freeroam \n\nAqui Disfrutaran de Skins, Carros \nReales, Carreras, \nEventos, Trabajos, Etc \n\nSkins: \nLeon Kenedy:15, Wesker:123, \nGoku:107, Crysis:28\n\nCarro Real: \nBuffalo", false, ventanalogin) guiSetFont(info, "default-bold-small") guiLabelSetColor(info, 0, 255, 0) reglas = guiCreateButton(424, 199, 141, 23, "Reglamento", false, ventanalogin) showCursor(true) function rules() guiSetText(info,"REGLAMENTO DEL SERVIDOR:\n\n- NO SPAM\n- NO INSULTOS\n- NO PEDIR PODER ADMINISTRATIVO\n- NO FLOOD/INUNDAR EL CHAT\n- NO ABUSAR DE BUGS\n- NO PELEAR\n- RESPETAR A MIEMBROS [JURA]\n- RESPETAR A ADMINISTRADORES\n- DIVERTIRSE") end addEventHandler("onClientGUIClick",reglas,rules,false) function infojura() guiSetText(info,"Somos una Pequeña Comunidad, la\nCual Se Encuentra Cada Vez Mas en\nCrecimiento.\nSitio Oficial: \n\n[url=http://www.mtajuraclan.blogspot.com]http://www.mtajuraclan.blogspot.com[/url] \n\nForo Oficial: \n\n[url=http://www.mtajuraclan.foroactivo.com]http://www.mtajuraclan.foroactivo.com[/url]") end addEventHandler("onClientGUIClick",somos,infojura,false) addEvent("cerrarLogin",true) function cerrarLogin() guiSetVisible(ventanalogin, not guiGetVisible(ventanalogin)) guiSetVisible(ventanalogin,false) showCursor(false) end addEventHandler("cerrarLogin",getRootElement(),cerrarLogin) addEventHandler("onClientGUIClick",InvBtn,cerrarLogin,false) function onRegisterKlick () local username = guiGetText(usuario) local password = guiGetText(clave) if username ~= "" and password ~= "" then triggerServerEvent("register",getLocalPlayer(),getLocalPlayer(),username,password) showCursor(false) end end addEventHandler("onClientGUIClick",RgsBtn,onRegisterKlick,false) function onLoginKlick () local username = guiGetText(usuario) local password = guiGetText(clave) if username ~= "" and password ~= "" then triggerServerEvent("login",getLocalPlayer(),getLocalPlayer(),username,password) showCursor(false) end end addEventHandler("onClientGUIClick",lgnBtn,onLoginKlick,false)
  15. Quien yo? no, mi primo, si lo dije el otro dia, yo tengo 19, los 2 somos de rusia, pero eso seria off topic, la diferencia es que yo vivo en madrid y estudio programacion, en españa, y el en malaga, aun no tengo skype, ya que no tengo tiempo con el trabajo
  16. and next, i think there are more
  17. Hi, i want to create a staff panel, but i dont know what handlers, functions, etc, use, i have the gui alredy maked, i know i must use kick, ban, mute, command, thanks, i will put my progress if i need help, but now my question is what i must use, when have the gui
  18. Hola, quisiera preguntar cuales son los pasos handlers, etc, para fabricar un panel de staff despues de haber creado la gui con gui editor, se que hay que utilizar para dar permisos de kickplayer, ban, mute, etc, gracias, ire poniendo mi progreso si necesitare ayuda, pero aora mi pregunta es que hay que usar para comenzar, despues del gui editor
  19. Solved thank you very mutch, the code for the people who need the resource for help: function godmodeHandler () cancelEvent () end addEvent ("enableGodMode",true) addEventHandler ("enableGodMode",getRootElement(), function() addEventHandler("onClientRender",getRootElement(),DxHandlerFunction) addEventHandler ("onClientPlayerDamage",getRootElement(), godmodeHandler) end) function DxHandlerFunction( ) dxDrawText("Has Entrado a la Zona de No Campeo, Tienes 1 Minuto Para Salir", 271, 709, 942, 775, 0xFFFF0000, 1.30, "pricedown", "center", "top", false, false, true, false, false) end addEvent ("disableGodMode",true) addEventHandler ("disableGodMode",getRootElement(), function() removeEventHandler ("onClientPlayerDamage",getRootElement(), godmodeHandler) addEventHandler("onClientRender",getRootElement(),DxHandlerFunction2) setTimer(function() removeEventHandler("onClientRender",getRootElement(),DxHandlerFunction2) end,4000,1) removeEventHandler("onClientRender",getRootElement(),DxHandlerFunction) end) function DxHandlerFunction2( ) dxDrawText("Has Salido de la Zona de No Campeo, Ahora Puedes Usar Armas", 271, 709, 942, 775, 0xFF00FF00, 1.30, "pricedown", "center", "top", false, false, true, false, false) end
  20. I need, when a player enter to the green area, there appear red message down in spanish lenguage, when the player leave, the red message desapear, and appear a green message with duration 4 seconds then disapear, with dxdrawntext i set the cordinate of the text
  21. Now the problem is, appear 2 messages when a player entry to the col, the green and red, but when leave, the 2 messages disapear
  22. Little bug, when leave, the timer work, but after 4 seconds the message appear, i need after 4 seconds the message leave
  23. mmm yes, but when a player enter, only output the red message, when the player leave the zone, quit the red message, and output the green, and the green message will disapear in 4 seconds
×
×
  • Create New...