Jump to content

iFoReX

Members
  • Posts

    1,708
  • Joined

  • Last visited

Everything posted by iFoReX

  1. the LuaEdit but u can say me what is bad ? please
  2. why the setElementPosition is bad ? local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "ElMota[Gold]~x" then setElementPosition( source, -1960.53528, 127.29656, 27.68750 ) else if ( money >= 10000 ) then takePlayerMoney ( source, 10000 ) setElementPosition( source, -1960.53528, 127.29656, 27.68750 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "qd2", true ) addEventHandler( "qd2", getRootElement(), qm2 ) local table = {{2851.87793, 1290.40491, 11.39063},{1433.50720, 2620.47266, 11.39261}} -- Una tabla con diferentes modelos de vehiculos. function qm4 ( ) local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "ElMota[Gold]~x" then setElementPosition ( source, table[ math.random ( #table ) ] ) else if ( money >= 10000 ) then takePlayerMoney ( source, 10000 ) setElementPosition ( source, table[ math.random ( #table ) ] ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "qd4", true ) addEventHandler( "qd4", getRootElement(), qm4 ) addEventHandler("onResourceStart",Vehiculocrear) function qm3 ( ) local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "ElMota[Gold]~x" then setElementPosition( source, 1056.44568, -2724.47437, 8.48407 ) else if ( money >= 10000 ) then takePlayerMoney ( source, 10000 ) setElementPosition( source, 1056.44568, -2724.47437, 8.48407 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "qd3", true ) addEventHandler( "qd3", getRootElement(), qm3 )
  3. si se lo de que gatilla la funcion, lo q no se es como definirlo y en que parte
  4. thnx for the facepalm xDD but dont do OFFTOPIC
  5. kenix in the last weekend I learn about scripting introduction , introduction the gui and the addeventhandler
  6. and It ? HInv_Window = guiCreateWindow(354,252,362,272,"Inv",false) guiWindowSetSizable(HInv_Window,false) HInv_Grid = guiCreateGridList(38,69,290,157,false,HInv_Window) guiGridListSetSelectionMode(HInv_Grid,2) hinvName = guiGridListAddColumn(HInv_Grid,"Name",2) HInv_BTN_Platzieren = guiCreateButton(90,231,186,22,"Platzieren",false,HInv_Window) function click() if (source == HInv_BTN_Platzieren) then guiSetVisible(HInv_Window,false) outputChatBox("TEXT") end end ) addEventHandler("onClientGUIClick", click)
  7. Soren uso eso porq todavia no entiendo eso de thePlayer, LocalPlayer y source D:
  8. draken all peoples can open my window
  9. Sip talvez es q no se supo explicar bien
  10. y en el script *de CeKiT tampoco cambia nada
  11. solid y como podria aserle para viajar gratis solo teniendo mi nombre ?
  12. function consoleSetPlayerPosition ( commandName, posX, posY, posZ ) setElementPosition ( getLocalPlayer(), posX, posY, posZ ) end addCommandHandler ( "lugar1", consoleSetPlayerPosition ) addCommandHandler ( "lugar2", consoleSetPlayerPosition ) buee si qres 2 comandos para 1 misma funcion porq no aser esto ? no se si sirva ._.
  13. ?? function qm() local money = getPlayerMoney(source) if (money > 10000) and if (takePlayerMoney (source, 10000)) then setElementPosition( localPlayer, 1742.98804, -1949.79041, 14.11719 ) else OutputChatBox("No Tienes Suficiente Dinero") end end addEvent( "qd", true ) addEventHandler( "qd", getRootElement(), qm ) nose si funcione mejor asi pero me aparece que tengo un if malo
  14. is my shop of change passwords but I want add a GUI for put Open and Put Close, the "GUI"
  15. nose si servira man sigo confundiendome con los triggers D: guia.lua GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(0.3875,0.2833,0.2175,0.5034,"Sistema de Guia de viajes",true) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(15,50,131,40,"Ir a Ls",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(14,111,131,40,"Ir a Sf",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(15,172,131,40,"Ir a la Isla",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(9,224,156,23,"-------------------------",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Button[4] = guiCreateButton(17,246,126,41,"Cancelar",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) local marker = createMarker(1056.43030, -2728.39600, 7, "cylinder", 1.7, 255, 255, 255, 150) local marker2 = createMarker(1743.13477, -1944.71582, 13.56561, "cylinder", 1.5, 255,255,255,150) function markerHit (hitPlayer) if ( hitPlayer == localPlayer ) then guiSetVisible (GUIEditor_Window[1], true) guiSetEnabled(GUIEditor_Button[3],false) showCursor (true) end end addEventHandler ("onClientMarkerHit", marker, markerHit) function markerHitLs (hitPlayer) if ( hitPlayer == localPlayer ) then guiSetVisible (GUIEditor_Window[1], true) guiSetEnabled(GUIEditor_Button[1],false) showCursor (true) end end addEventHandler ("onClientMarkerHit", marker2, markerHitLs) addEventHandler("onClientGUIClick", root, function ( ) if ( source == GUIEditor_Button[1] ) then setElementPosition( localPlayer, 1742.98804, -1949.79041, 14.11719 ) triggerServerEvent ( "qd", getLocalPlayer() ) elseif ( source == GUIEditor_Button[2] ) then setElementPosition( localPlayer, 1742.98804, -1949.79041, 14.11719 ) elseif ( source == GUIEditor_Button[4] ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor ( false ) end end ) guia_sv.lua function qm() local money = getPlayerMoney(thePlayer) if (money > 10000) then takePlayerMoney ( 10000) end addEvent( "qd", true ) addEventHandler( "qd", getRootElement(), qm ) lo probare
  16. mmm man y esto ? no se podria asi ? ... addEventHandler("onClientGUIClick", root, function ( ) if ( source == GUIEditor_Button[1] ) then setElementPosition( localPlayer, 1742.98804, -1949.79041, 14.11719 ) local money = getPlayerMoney(thePlayer) if (money > 10000) then takePlayerMoney ( 10000) ) elseif ( source == GUIEditor_Button[2] ) then setElementPosition( localPlayer, 1742.98804, -1949.79041, 14.11719 ) elseif ( source == GUIEditor_Button[4] ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor ( false ) end end )
  17. man y con el takemoney como podria aserle ?
  18. ? GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Checkbox = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(214,198,427,231,"GUI Cambiar Pass",false) GUIEditor_Label[1] = guiCreateLabel(29,54,103,24,"Vieja Contraseña ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],0, 0, 190) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(137,51,179,26,"",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(29,101,103,24,"Nueva Contraseña ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],0,0,190) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Edit[2] = guiCreateEdit(137,92,179,26,"",false,GUIEditor_Window[1]) guiEditSetMaxLength(GUIEditor_Edit[2],10) GUIEditor_Image[1] = guiCreateStaticImage(27,178,94,42,"images/BAT.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(126,175,82,45,"images/shruk.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(324,91,91,35,"Aceptar",false,GUIEditor_Window[1]) guiSetEnabled(GUIEditor_Button[1],false) GUIEditor_Button[2] = guiCreateButton(325,49,74,35,"Cancelar",false,GUIEditor_Window[1]) GUIEditor_Checkbox[1] = guiCreateCheckBox(30,150,359,20,"Acepto Las Condiciones y Terminos de Uso de este Servidor",false,false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Checkbox[1],"default-small") GUIEditor_Label[3] = guiCreateLabel(29,54,103,24,"Old Password ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],0,0,190) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(29,101,103,24,"New Password ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],0,0,190) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(325,49,74,35,"Cancel",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(324,91,91,35,"Accept",false,GUIEditor_Window[1]) guiSetEnabled(GUIEditor_Button[4],false) GUIEditor_Checkbox[2] = guiCreateCheckBox(30,150,359,20,"I accept the conditions and terms of use of this server",false,false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Checkbox[2],"default-small") GUIEditor_Label[5] = guiCreateLabel(219,181,198,24,"GUI CopyRight 2012 (c) by ElMota",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[5],255, 255, 0) guiSetFont(GUIEditor_Label[5],"default-bold-small") guiSetVisible ( GUIEditor_Window[1], false ) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Image[1] ) then guiSetVisible ( GUIEditor_Label[1], true ) guiSetVisible ( GUIEditor_Label[2], true ) guiSetVisible ( GUIEditor_Label[3], false ) guiSetVisible ( GUIEditor_Label[4], false ) guiSetVisible ( GUIEditor_Checkbox[1], true ) guiSetVisible ( GUIEditor_Checkbox[2], false ) guiSetVisible ( GUIEditor_Button[1], true ) guiSetVisible ( GUIEditor_Button[2], true ) guiSetVisible ( GUIEditor_Button[3], false ) guiSetVisible ( GUIEditor_Button[4], false ) elseif ( source == GUIEditor_Image[2] ) then guiSetVisible ( GUIEditor_Label[3], true ) guiSetVisible ( GUIEditor_Label[4], true ) guiSetVisible ( GUIEditor_Label[1], false ) guiSetVisible ( GUIEditor_Label[2], false ) guiSetVisible ( GUIEditor_Checkbox[2], true ) guiSetVisible ( GUIEditor_Checkbox[1], false ) guiSetVisible ( GUIEditor_Button[3], true ) guiSetVisible ( GUIEditor_Button[4], true ) guiSetVisible ( GUIEditor_Button[1], false ) guiSetVisible ( GUIEditor_Button[2], false ) elseif ( source == GUIEditor_Button[2] ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) guiSetInputEnabled(false) elseif ( source == GUIEditor_Checkbox[1] ) then guiSetEnabled ( GUIEditor_Button[1], guiCheckBoxGetSelected ( source ) ) elseif ( source == GUIEditor_Checkbox[2] ) then guiSetEnabled ( GUIEditor_Button[4], guiCheckBoxGetSelected ( source ) ) elseif ( source == GUIEditor_Button[3] ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) guiSetInputEnabled(false) end end ) function markerHit (hitPlayer) if ( hitPlayer == localPlayer ) then guiSetVisible (GUIEditor_Window[1], true) showCursor (true) end end addEventHandler ("onClientMarkerHit", changepassmarket, markerHit) addEventHandler ( "onClientPlayerDamage", root, function ( ) if ( isElementWithinMarker ( localPlayer, changepassmarket ) ) then setElementHealth ( localPlayer, 100 ) end end ) function clientSubmitChangepw(button, state) if button == "left" and state == "up" then local oldpassword = guiGetText(GUIEditor_Edit[1]) local newpassword = guiGetText(GUIEditor_Edit[2]) if oldpassword and newpassword then triggerServerEvent("submitChangepw", getRootElement(), localPlayer, oldpassword, newpassword) else outputChatBox("Pon Tu vieja Contraseña y Tu Nueva Contraseña.") end end end addEventHandler( "onClientGUIClick", GUIEditor_Button[1], clientSubmitChangepw, false) function offPlayerChangeNick () cancelEvent () -- stop the event from occuring end addEventHandler ( "onPlayerChangeNick", root, offPlayerChangeNick ) -- What is "huntedPlayer"? ------------------------------------- --La GUI De Activacion---- GUI = guiCreateWindow(0.2387,0.2317,0.5375,0.2533,"GUI Cambiar Passwords",true) guiWindowSetMovable(GUI, false) guiWindowSetSizable(GUI, false) boton = guiCreateButton(9,29,153,41,"Abrir Tienda",false,GUI) guiSetFont(GUIEditor_Button[1],"default-bold-small") boton2 = guiCreateButton(264,29,153,41,"Cerrar Tienda",false,GUI) guiSetFont(GUIEditor_Button[2],"default-bold-small") label = guiCreateLabel(9,76,415,26,"--------------------------------------------------------------------------------",false,GUI) guiSetFont(GUIEditor_Label[1],"default-bold-small") boton3 = guiCreateButton(261,101,160,42,"Cancelar",false,GUI) guiSetVisible(GUI, false) showCursor(false) function losBotones() if (source == boton) then changepassmarket = createMarker (273.19537, -158.01585, 0, "cylinder", 3, 255, 0, 0, 100) blip = createBlipAttachedTo(changepassmarket, 35) elseif (source == boton2) then if isElement(changepassmarket) then destroyElement(changepassmarket) elseif isElement(blip) then destroyElement(blip) changepassmarket2 = createMarker (273.19537, -158.01585, 0, "cylinder", 3, 255, 0, 0, 100) blip = createBlipAttachedTo(changepassmarket2, 35) elseif (source == boton3) then guiSetVisible(GUI, false) showCursor(false) end end addEventHandler ( "onClientGUIClick", losBotones ) function lagui() triggerServerEvent ( "ACL",getLocalPlayer()) guiSetVisible(GUI, true) showCursor(true) end end bindKey("F6","down", lagui) function passwordHandler(player, oldpassword, newpassword) local account = getPlayerAccount(player) if (account) then if (isGuestAccount(account)) then outputChatBox("Tu Necesitas Loggearte para Cambiar la Contraseña/You must be logged in to change your password.", player) return end local accountName = getAccountName ( account ) local password_check = getAccount(accountName, oldpassword) if (password_check ~= false) then if (string.len(newpassword) >= 3) then setAccountPassword(account, newpassword) triggerClientEvent(player, "hidePasswordWindow", getRootElement()) else outputChatBox("Tu Nueva Contraseña Debe ser de menos de 10 caracteres/Your new password must be at least 10 characters long!", player) end else outputChatBox("Vieja Contraseña Invalida/Old Password Invalid.", player) end end end addEvent("submitChangepw", true) addEventHandler("submitChangepw", root, passwordHandler) function offPlayerChangeNick () cancelEvent () -- stop the event from occuring end addEventHandler ( "onPlayerChangeNick", root, offPlayerChangeNick ) -- What is "huntedPlayer"? function ACLF() local accountName = getAccountName(account) if isObjectInACLGroup ("user."..accountName, aclGetGroup ( "Admin" ) ) then end end addEvent("ACL", true) addEventHandler("ACL", localPlayer, ACLF)
  19. buee como dice ai quiero aser que el jugador cuando apriete el buton "ir a Ls" se teletransporte a una posicion espesifica pero no se que elemento poner me ayudarian ? GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(0.3875,0.2833,0.2175,0.5034,"Sistema de Guia de viajes",true) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(15,50,131,40,"Ir a Ls",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(14,111,131,40,"Ir a Sf",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(15,172,131,40,"Ir a la Isla",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(9,224,156,23,"-------------------------",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Button[4] = guiCreateButton(17,246,126,41,"Cancelar",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) local marker = createMarker(1056.43030, -2728.39600, 7, "cylinder", 1.7, 255, 255, 255, 150) function markerHit (hitPlayer) if ( hitPlayer == localPlayer ) then guiSetVisible (GUIEditor_Window[1], true) showCursor (true) end end addEventHandler ("onClientMarkerHit", marker, markerHit) addEventHandler("onClientGUIClick", root, function (thePlayer) if (source == GUIEditor_Button[1]) then setElementPosition(thePlayer, 1742.98804, -1949.79041, 14.11719) elseif (source == GUIEditor_Button[4]) then guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end end )
  20. I remove and I have the problem in it line
  21. I cant find error in it script in the debugging say = have error in 158 GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Checkbox = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(214,198,427,231,"GUI Cambiar Pass",false) GUIEditor_Label[1] = guiCreateLabel(29,54,103,24,"Vieja Contraseña ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],0, 0, 190) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(137,51,179,26,"",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(29,101,103,24,"Nueva Contraseña ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],0,0,190) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Edit[2] = guiCreateEdit(137,92,179,26,"",false,GUIEditor_Window[1]) guiEditSetMaxLength(GUIEditor_Edit[2],10) GUIEditor_Image[1] = guiCreateStaticImage(27,178,94,42,"images/BAT.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(126,175,82,45,"images/shruk.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(324,91,91,35,"Aceptar",false,GUIEditor_Window[1]) guiSetEnabled(GUIEditor_Button[1],false) GUIEditor_Button[2] = guiCreateButton(325,49,74,35,"Cancelar",false,GUIEditor_Window[1]) GUIEditor_Checkbox[1] = guiCreateCheckBox(30,150,359,20,"Acepto Las Condiciones y Terminos de Uso de este Servidor",false,false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Checkbox[1],"default-small") GUIEditor_Label[3] = guiCreateLabel(29,54,103,24,"Old Password ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],0,0,190) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(29,101,103,24,"New Password ",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],0,0,190) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Button[3] = guiCreateButton(325,49,74,35,"Cancel",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(324,91,91,35,"Accept",false,GUIEditor_Window[1]) guiSetEnabled(GUIEditor_Button[4],false) GUIEditor_Checkbox[2] = guiCreateCheckBox(30,150,359,20,"I accept the conditions and terms of use of this server",false,false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Checkbox[2],"default-small") GUIEditor_Label[5] = guiCreateLabel(219,181,198,24,"GUI CopyRight 2012 (c) by ElMota",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[5],255, 255, 0) guiSetFont(GUIEditor_Label[5],"default-bold-small") guiSetVisible ( GUIEditor_Window[1], false ) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor_Image[1] ) then guiSetVisible ( GUIEditor_Label[1], true ) guiSetVisible ( GUIEditor_Label[2], true ) guiSetVisible ( GUIEditor_Label[3], false ) guiSetVisible ( GUIEditor_Label[4], false ) guiSetVisible ( GUIEditor_Checkbox[1], true ) guiSetVisible ( GUIEditor_Checkbox[2], false ) guiSetVisible ( GUIEditor_Button[1], true ) guiSetVisible ( GUIEditor_Button[2], true ) guiSetVisible ( GUIEditor_Button[3], false ) guiSetVisible ( GUIEditor_Button[4], false ) elseif ( source == GUIEditor_Image[2] ) then guiSetVisible ( GUIEditor_Label[3], true ) guiSetVisible ( GUIEditor_Label[4], true ) guiSetVisible ( GUIEditor_Label[1], false ) guiSetVisible ( GUIEditor_Label[2], false ) guiSetVisible ( GUIEditor_Checkbox[2], true ) guiSetVisible ( GUIEditor_Checkbox[1], false ) guiSetVisible ( GUIEditor_Button[3], true ) guiSetVisible ( GUIEditor_Button[4], true ) guiSetVisible ( GUIEditor_Button[1], false ) guiSetVisible ( GUIEditor_Button[2], false ) elseif ( source == GUIEditor_Button[2] ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) guiSetInputEnabled(false) elseif ( source == GUIEditor_Checkbox[1] ) then guiSetEnabled ( GUIEditor_Button[1], guiCheckBoxGetSelected ( source ) ) elseif ( source == GUIEditor_Checkbox[2] ) then guiSetEnabled ( GUIEditor_Button[4], guiCheckBoxGetSelected ( source ) ) elseif ( source == GUIEditor_Button[3] ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) guiSetInputEnabled(false) end end ) function markerHit (hitPlayer) if ( hitPlayer == localPlayer ) then guiSetVisible (GUIEditor_Window[1], true) showCursor (true) end end addEventHandler ("onClientMarkerHit", changepassmarket, markerHit) addEventHandler ( "onClientPlayerDamage", root, function ( ) if ( isElementWithinMarker ( localPlayer, changepassmarket ) ) then setElementHealth ( localPlayer, 100 ) end end ) function clientSubmitChangepw(button, state) if button == "left" and state == "up" then local oldpassword = guiGetText(GUIEditor_Edit[1]) local newpassword = guiGetText(GUIEditor_Edit[2]) if oldpassword and newpassword then triggerServerEvent("submitChangepw", getRootElement(), localPlayer, oldpassword, newpassword) else outputChatBox("Pon Tu vieja Contraseña y Tu Nueva Contraseña.") end end end addEventHandler( "onClientGUIClick", GUIEditor_Button[1], clientSubmitChangepw, false) function offPlayerChangeNick () cancelEvent () -- stop the event from occuring end addEventHandler ( "onPlayerChangeNick", root, offPlayerChangeNick ) -- What is "huntedPlayer"? ------------------------------------- --La GUI De Activacion---- GUI = guiCreateWindow(0.2387,0.2317,0.5375,0.2533,"GUI Cambiar Passwords",true) guiWindowSetMovable(GUI, false) guiWindowSetSizable(GUI, false) boton = guiCreateButton(9,29,153,41,"Abrir Tienda",false,GUI) guiSetFont(GUIEditor_Button[1],"default-bold-small") boton2 = guiCreateButton(264,29,153,41,"Cerrar Tienda",false,GUI) guiSetFont(GUIEditor_Button[2],"default-bold-small") label = guiCreateLabel(9,76,415,26,"--------------------------------------------------------------------------------",false,GUI) guiSetFont(GUIEditor_Label[1],"default-bold-small") boton3 = guiCreateButton(261,101,160,42,"Cancelar",false,GUI) guiSetVisible(GUI, false) showCursor(false) function losBotones() if (source == boton) then changepassmarket = createMarker (273.19537, -158.01585, 0, "cylinder", 3, 255, 0, 0, 100) blip = createBlipAttachedTo(changepassmarket, 35) elseif (source == boton2) then if isElement(changepassmarket) then destroyElement(changepassmarket) if isElement(blip) then destroyElement(blip) changepassmarket2 = createMarker (273.19537, -158.01585, 0, "cylinder", 3, 255, 0, 0, 100) blip = createBlipAttachedTo(changepassmarket2, 35) elseif (source == boton3) then guiSetVisible(GUI, false) showCursor(false) end end addEventHandler ( "onClientGUIClick", losBotones ) function laGUI() local accountName = getAccountName(account) if isObjectInACLGroup ("user."..accountName, aclGetGroup ( "Admin" ) ) then guiSetVisible(GUI, true) showCursor(true) end end end bindKey("F6","down", laGUI)
  22. soren esta qdando re bueno el mapp de la isla cuando pude lo pase a ver
×
×
  • Create New...