Jump to content

iFoReX

Members
  • Posts

    1,708
  • Joined

  • Last visited

Everything posted by iFoReX

  1. iFoReX

    Se puede??

    hace un grid con rows osino seria estar todo un dia poniendo botones
  2. Ok tried and again doesnt work :c I have wait for buy a Host
  3. Thank you Tommeh now 1 problem I open my E-mail and the verify code doesnt send I try 4 times
  4. iFoReX

    Se puede??

    Plate dime la estructura de la GUI y te la hago igualita
  5. plate aunque sea no le echas ninguna miradita a los codigos ?
  6. Soren e ablado con Edikosh y el sigue en esto creo que son re artas lineas
  7. Plate no es copiar y pegar -.-" function dardinero(thePlayer, command, who, amount) local new = getPlayerFromName ( who ) local old = getPlayerFromName ( thePlayer ) givePlayerMoney (new, math.abs(tonumber(amount))) takePlayerMoney (thePlayer, math.abs(tonumber(amount))) end addCommandHandler ("dardinero", dardinero)
  8. Ok man pero no se necesita ejecutar algun getElementData ?
  9. ok yakusa solo 1 pregunta... las coordenadas del cuboid son las mismas que la de la zona radar #OFFTopic : ademas.. Yakusa me pase por tu server y los de los clanes estan fuera de la zona anti zombies y pasan matando a las personas comunes y corrientes
  10. ok but why my mtaserver.exe doesnt work
  11. a host free for 2 or 3 months if u know please tell me
  12. I had install the mta paradise and now my mtaserver.exe doesnt work i cant play now I have edit any file ?
  13. local message = "bicho aparece para matarlos" local red = 0 local green = 0 local blue = 0 local useHTMLcolors = true -- Default is true, If set to false message will be white, Unless you've changed the message colors! local skin=128 local weapon=33 local mode= "hunting" local team =Terrorist local interior=0 local dimension= 0 local rot= 90 local x = 179, 1881.3928222656 local y = -1325.0609130859 local z = 19.4921875 resourceRoot = getResourceRootElement() function Spawnbot1 () local outPutMsg = outputChatBox(message, getRootElement(), red, green, blue, useHTMLcolors) local bot = call (getResourceFromName("slothbot"), "spawnBot", x, y, z, rot, skin, interior, dimension, team, weapon, mode, modesubject) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), Spawnbot1 ) addCommandHandler ("bicho", bicho) function bicho() if isObjectInACLGroup ("user."..accountName, aclGetGroup ( "Admin" ) ) then if isObjectInACLGroup ("user."..accountName, aclGetGroup ( "supermoderadores" ) ) then if isObjectInACLGroup ("user."..accountName, aclGetGroup ( "moderadores" ) ) then ---te falto rellenarlo aqui end end end end borra todos los locals ya q los locals creo q solo son el functions creo
  14. #OFFTopic edikosh como es so de que math.abs devuelve el valor absoluto de x ? no entiendo eso en el manual lua
  15. osea quedaria ESTO ESTA BIEN? addCommandHandler ("gritar", gritar) function gritar() if isObjectInACLGroup ("user."..accountName, aclGetGroup ( "Admin" ) ) then if isObjectInACLGroup ("user."..accountName, aclGetGroup ( "supermoderadores" ) ) then if isObjectInACLGroup ("user."..accountName, aclGetGroup ( "moderadores" ) ) then ---Aqui lo que quieres hacer en la function end end end end
  16. very very very nice work Mate_ Work 100% only a thing the "help" file in F9 only it
  17. a que te referis con " ya lo re quemaron en miles de servers " ? y rowM es en lo que dice en la Img como "militar"
  18. entonces que esta mal :c si esta el Grid list y el row que quiero remover
  19. no se e corregido los argumentos un sinfin de veses y sigue igual
  20. porq no funciona mi removerow :c me dice bad argument aqui el codigo estan en las lineas 141 y 157 GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0,0.0017,0.3575,0.8917,"",true) GUIEditor_Grid[1] = guiCreateGridList(10,28,108,193,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) column1 = guiGridListAddColumn(GUIEditor_Grid[1],"Ciudades",0.-- s8) --> row1 = guiGridListAddRow(GUIEditor_Grid[1]) row2 = guiGridListAddRow(GUIEditor_Grid[1]) row3 = guiGridListAddRow(GUIEditor_Grid[1]) row4 = guiGridListAddRow(GUIEditor_Grid[1]) GUIEditor_Grid[2] = guiCreateGridList(11,242,125,193,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[2],2) column2 = guiGridListAddColumn(GUIEditor_Grid[2],"Categorias",0.-- s8) --> row5 = guiGridListAddRow(GUIEditor_Grid[2]) row6 = guiGridListAddRow(GUIEditor_Grid[2]) row7 = guiGridListAddRow(GUIEditor_Grid[2]) row8 = guiGridListAddRow(GUIEditor_Grid[2]) row9 = guiGridListAddRow(GUIEditor_Grid[2]) row10 = guiGridListAddRow(GUIEditor_Grid[2]) row11 = guiGridListAddRow(GUIEditor_Grid[2]) GUIEditor_Grid[3] = guiCreateGridList(146,241,131,195,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[3],2) columnp = guiGridListAddColumn(GUIEditor_Grid[3],"Personajes",0.-- s8) --> GUIEditor_Memo[1] = guiCreateMemo(123,52,157,168,"",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) GUIEditor_Label[1] = guiCreateLabel(160,29,72,15,"Informacion",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Button[1] = guiCreateButton(146,482,131,44,"Spawn",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(11,504,127,17,"GUI Creada por ElMota",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(17,445,35,22,"<",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(77,445,35,22,">",false,GUIEditor_Window[1]) GUIEditor_Edit[1] = guiCreateEdit(54,444,22,22,"",false,GUIEditor_Window[1]) guiEditSetReadOnly(GUIEditor_Edit[1],true) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) addEvent("onVisibleGUI", true) addEventHandler("onVisibleGUI", getLocalPlayer(), function() guiSetVisible(GUIEditor_Window[1],true) showCursor(true) triggerServerEvent("onRadarHud", getLocalPlayer()) end ) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor_Button[1] then triggerServerEvent("offRadarHud", getLocalPlayer()) end end ) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() guiGridListSetItemText(GUIEditor_Grid[2],row5,column2,"Policia", false, false) guiGridListSetItemText(GUIEditor_Grid[2],row6,column2,"Militar", false, false) guiGridListSetItemText(GUIEditor_Grid[2],row7,column2,"Taxista", false, false) guiGridListSetItemText(GUIEditor_Grid[2],row8,column2,"Medico", false, false) guiGridListSetItemText(GUIEditor_Grid[2],row9,column2,"Ladron", false, false) guiGridListSetItemText(GUIEditor_Grid[2],row11,column2,"Motosiclista", false, false) guiGridListSetItemText(GUIEditor_Grid[1],row1,column1,"LS", false, false) guiGridListSetItemText(GUIEditor_Grid[1],row2,column1,"LV", false, false) guiGridListSetItemText(GUIEditor_Grid[1],row3,column1,"SF", false, false) guiGridListSetItemText(GUIEditor_Grid[1],row4,column1,"Clanes Privados", false, false) end ) addEventHandler( 'onClientGUIClick', guiRoot, function( ) if source == GUIEditor_Grid[1] then nRow = guiGridListGetSelectedItem( GUIEditor_Grid[1] ) if nRow ~= -1 then if nRow == 0 then guiSetText(GUIEditor_Memo[1], "Escoge el Spawn que quieras de LS disfrutaloo") triggerServerEvent( 'onCameraM1', localPlayer ) elseif nRow == 1 then guiSetText(GUIEditor_Memo[1], "Escoge el Spawn que quieras de LV disfrutaloo") triggerServerEvent( 'onCameraM2', localPlayer ) elseif nRow == 2 then guiSetText(GUIEditor_Memo[1], "Escoge el Spawn que quieras de SF disfrutaloo") triggerServerEvent( 'onCameraM3', localPlayer ) elseif nRow == 3 then guiSetText(GUIEditor_Memo[1], "Estos son Clanes Privados No entrar Si no quieres morir") triggerServerEvent( 'onCameraM4', localPlayer ) end end end end ) addEventHandler ( 'onClientGUIClick', guiRoot, function ( ) if ( source == GUIEditor_Button[1] ) then local row, col = guiGridListGetSelectedItem ( GUIEditor_Grid[1] ) local rowP, colP = guiGridListGetSelectedItem ( GUIEditor_Grid[2] ) if ( row and col and row ~= -1 and col ~= -1 ) then guiSetText ( GUIEditor_Memo[1], "Debes elegir algun Personaje" ) guiSetVisible ( GUIEditor_Window[1], true ) showCursor ( true ) elseif ( rowP and colP and rowP ~= -1 and colP ~= -1 ) then guiSetText ( GUIEditor_Memo[1], "Debes elegir alguna Ciudad" ) elseif ( nRow == 0 and nRow2 == 0 ) then end end end ) addEventHandler( 'onClientGUIClick', guiRoot, function( ) if source == GUIEditor_Grid[2] then nRow2 = guiGridListGetSelectedItem( GUIEditor_Grid[2] ) if nRow ~= -1 and nRow2 ~= -1 then if nRow == 0 and nRow2 == 0 then guiSetText(GUIEditor_Memo[1], "Tu mision es defender a la Gente honesta matando a Delincuentes") triggerServerEvent( 'onCameraM5', localPlayer ) guiGridListRemoveRow( GUIEditor_Grid[3], rowM ) guiGridListRemoveRow( GUIEditor_Grid[3], rowMV ) local rowPS = guiGridListAddRow( GUIEditor_Grid[3] ) local rowPF = guiGridListAddRow( GUIEditor_Grid[3] ) local rowP = guiGridListAddRow( GUIEditor_Grid[3] ) guiGridListSetItemText( GUIEditor_Grid[3], rowPS, columnp, "Poli SWAT", false, false ) guiGridListSetItemText( GUIEditor_Grid[3], rowPF, columnp, "Poli FBI", false, false ) guiGridListSetItemText( GUIEditor_Grid[3], rowP, columnp, "Poli", false, false ) elseif nRow == 0 and nRow2 == 1 then guiSetText(GUIEditor_Memo[1], "Tu mision es ayudar a los polis por si no puede con algo...") guiGridListRemoveRow( GUIEditor_Grid[3], rowPS ) guiGridListRemoveRow( GUIEditor_Grid[3], rowPF ) guiGridListRemoveRow( GUIEditor_Grid[3], rowP ) local rowM = guiGridListAddRow( GUIEditor_Grid[3] ) local rowMV = guiGridListAddRow( GUIEditor_Grid[3] ) guiGridListSetItemText( GUIEditor_Grid[3], rowM, columnp, "Militar", false, false ) guiGridListSetItemText( GUIEditor_Grid[3], rowMV, columnp, "Militar Vendeta", false, false ) triggerServerEvent( 'onCameraM6', localPlayer ) elseif nRow == 0 and nRow2 == 2 then guiSetText(GUIEditor_Memo[1], "Tu mision es ir a recoger y buscar personas que te llamen") triggerServerEvent( 'onCameraM7', localPlayer ) elseif nRow == 0 and nRow2 == 3 then guiSetText(GUIEditor_Memo[1], "Tu mision es ir en la ambulancia y ayudar a los mas necesitados") triggerServerEvent( 'onCameraM8', localPlayer ) elseif nRow == 0 and nRow2 == 4 then guiSetText(GUIEditor_Memo[1], "Tienes que matar y robar a la gente cuidado con los polis") triggerServerEvent( 'onCameraM9', localPlayer ) elseif nRow == 0 and nRow2 == 5 then guiSetText(GUIEditor_Memo[1], "Tienes que matar y robar a la gente cuidado con los polis") triggerServerEvent( 'onCameraM10', localPlayer ) elseif nRow == 1 and nRow2 == 0 then guiSetText(GUIEditor_Memo[1], "Tu mision es defender a la Gente honesta matando a Delincuentes") triggerServerEvent( 'onCameraM12', localPlayer ) elseif nRow == 1 and nRow2 == 1 then guiSetText(GUIEditor_Memo[1], "Tu mision es ayudar a los polis por si no puede con algo...") triggerServerEvent( 'onCameraM13', localPlayer ) elseif nRow == 1 and nRow2 == 2 then guiSetText(GUIEditor_Memo[1], "Tu mision es ir a recoger y buscar personas que te llamen") triggerServerEvent( 'onCameraM14', localPlayer ) elseif nRow == 1 and nRow2 == 3 then guiSetText(GUIEditor_Memo[1], "Tu mision es ir en la ambulancia y ayudar a los mas necesitados") triggerServerEvent( 'onCameraM15', localPlayer ) elseif nRow == 1 and nRow2 == 4 then guiSetText(GUIEditor_Memo[1], "Tienes que matar y robar a la gente cuidado con los polis") triggerServerEvent( 'onCameraM16', localPlayer ) elseif nRow == 1 and nRow2 == 6 then guiSetText(GUIEditor_Memo[1], "No ai mision solo conocer todo GTA") triggerServerEvent( 'onCameraM17', localPlayer ) elseif nRow == 2 and nRow2 == 0 then guiSetText(GUIEditor_Memo[1], "Tu mision es defender a la Gente honesta matando a Delincuentes") triggerServerEvent( 'onCameraM18', localPlayer ) elseif nRow == 2 and nRow2 == 1 then guiSetText(GUIEditor_Memo[1], "Tu mision es ayudar a los polis por si no puede con algo...") triggerServerEvent( 'onCameraM19', localPlayer ) elseif nRow == 2 and nRow2 == 2 then guiSetText(GUIEditor_Memo[1], "Tu mision es ir a recoger y buscar personas que te llamen") triggerServerEvent( 'onCameraM20', localPlayer ) elseif nRow == 2 and nRow2 == 3 then guiSetText(GUIEditor_Memo[1], "Tu mision es ir en la ambulancia y ayudar a los mas necesitados") triggerServerEvent( 'onCameraM21', localPlayer ) elseif nRow == 2 and nRow2 == 4 then guiSetText(GUIEditor_Memo[1], "Tienes que matar y robar a la gente cuidado con los polis") triggerServerEvent( 'onCameraM22', localPlayer ) elseif nRow == 2 and nRow2 == 6 then guiSetText(GUIEditor_Memo[1], "No ai mision solo conocer todo GTA") triggerServerEvent( 'onCameraM23', localPlayer ) end end end end ) addEventHandler("onClientPlayerWasted", getLocalPlayer(), function() setElementHealth( localPlayer, 1607.3630371094, 1816.3391113281, 10.8203125 ) guiSetVisible(GUIEditor_Window[1],true) showCursor(true) end )
  21. genial espero averte ayudado alexs
  22. Vere que tal funciona *-* EDIT : no lo podre ocupar ya que mi teclado no tiene NUM_2 ni esos NUMs :c
  23. Ya encontre el error chekea el codigo GUIEditor_Label = {} WindowsCategoria = guiCreateWindow(63,60,701,484,"Elige una Categoria...",false) guiSetVisible ( WindowsCategoria, false ) GUIEditor_Label[1] = guiCreateLabel(383,123,5,5,"",false,WindowsCategoria) ButtonCatZC = guiCreateButton(52,70,251,290,"",false,WindowsCategoria) ImageZCCat = guiCreateStaticImage(24,26,208,237,"images/ZC-Grupo.png",false,ButtonCatZC) ButonClanesCat = guiCreateButton(385,70,251,290,"Clanes",false,WindowsCategoria) guiSetFont(ButonClanesCat,"sa-gothic") MemoZC1 = guiCreateMemo(41,383,269,75,"ZombieCity: Refugio Oficial.\nSi eres nuevo o no posees clan, entra aca, igual para los Miembros del Staff.",false,WindowsCategoria) guiMemoSetReadOnly(MemoZC1,true) MemoClanes1 = guiCreateMemo(376,383,269,75,"Clanes Oficiales:\n-[MCC]\n-|ALFA| ",false,WindowsCategoria) GUIEditor_Button = {} DefaultSpawn = guiCreateWindow(101,119,580,318,"Escoge un Spawn...",false) GUIEditor_Button[1] = guiCreateButton(41,46,211,242,"",false,DefaultSpawn) SpawnStaff = guiCreateButton(311,46,211,242,"Staff",false,DefaultSpawn) guiSetFont(SpawnStaff,"sa-gothic") ImagenDefaultSpwn = guiCreateStaticImage(54,65,187,213,"images/ZC-Grupo.png",false,DefaultSpawn) guiSetVisible(WindowsCategoria,false) guiSetVisible(DefaultSpawn,false) showCursor(false) function categoria ( ) guiSetVisible(WindowsCategoria,true) showCursor(true) end addEvent( "spawnlogin", true ) addEventHandler( "spawnlogin", getLocalPlayer(), categoria ) function zcboton ( ) if source == ELBOTON then ----ai pones el boton yo le abia puesto el nombre de la function sory guiSetVisible(DefaultSpawn,true) guiSetVisible(WindowsCategoria,false) showCursor(true) end end addEventHandler ( "onClientGUIClick", root, zcboton )
×
×
  • Create New...