Jump to content

iFoReX

Members
  • Posts

    1,708
  • Joined

  • Last visited

Everything posted by iFoReX

  1. iFoReX

    que anda mal ?

    que son los argumentos ._.
  2. iFoReX

    GUI PRoblem :D

    I want when the player double click in a item the label change to : PM TO : selectedplayer
  3. iFoReX

    GUI PRoblem :D

    Here the script GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(247,116,339,383,"",false) guiSetVisible(GUIEditor_Window[1], false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Label[1] = guiCreateLabel(46,43,223,20,"PM a ".. playerName",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Memo[1] = guiCreateMemo(12,76,312,236,"",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) GUIEditor_Edit[1] = guiCreateEdit(12,318,239,38,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(252,315,78,44,"Enviar",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(84,122,163,376,"",false) guiSetVisible(GUIEditor_Window[2], false) guiWindowSetMovable(GUIEditor_Window[2],false) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Grid[1] = guiCreateGridList(9,26,145,338,false,GUIEditor_Window[2]) local column = guiGridListAddColumn ( GUIEditor_Grid[1], "Player", 0.85 ) if ( column ) then for id, playeritem in ipairs ( getElementsByType ( "player" ) ) do local row = guiGridListAddRow ( GUIEditor_Grid[1] ) guiGridListSetItemText ( GUIEditor_Grid[1], row, column, getPlayerName( playeritem ), false, false ) end end function doubleClickedName( ) local selectedRow, selectedCol = guiGridListGetSelectedItem( GUIEditor_Grid[1] ) local playerName = guiGridListGetItemText( GUIEditor_Grid[1], selectedRow, selectedCol ) end addEventHandler( "onClientGUIDoubleClick", GUIEditor_Grid[1], doubleClickedName, false ); bindKey ( "F7", "down", function ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) guiSetVisible ( GUIEditor_Window[2], not guiGetVisible ( GUIEditor_Window[2] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) end ) here the debugscript :
  4. iFoReX

    que anda mal ?

    sii de eso me guie para crear lo que ise ._.
  5. iFoReX

    que anda mal ?

    me podrias ayudar tu con eso es que me re enredo en esto de unir client-side con server-side
  6. iFoReX

    GUI PRoblem :D

    what is bad ? now the WindowS dont appear with the bindkey, I put for DoubleClick the player in label : PM TO THEPLAYER but dont work :c
  7. iFoReX

    que anda mal ?

    ok pero si no tiene sentido es porq no entendia mucho Client-Side ... addEventHandler("onClientGUIDoubleClick", root, function ( ) if ( source == GUIEditor_Grid[1] ) then local row, col = guiGridListGetSelectedItem ( source ) if ( row and col and row ~= -1 and col ~= -1 ) then if ( row == 0 ) then triggerServerEvent ( "crearVehiculo1") arrowMarker = createMarker ( 0, 0, 0, "arrow", .75, 255, 0, 0, 170 ) attachElements ( arrowMarker, v1, 0, 0, 2 ) outputChatBox ( "Porfavor #00FF00Sube al Camion", getRootElement(), 255, 0, 0, true ) elseif ( row == 1 ) then triggerServerEvent ( "crearVehiculo2") arrowMarker = createMarker ( 0, 0, 0, "arrow", .75, 255, 0, 0, 170 ) attachElements ( arrowMarker, v2, 0, 0, 2 ) end guiSetVisible( GUIEditor_Grid[1], false ) outputChatBox ( "Porfavor #00FF00Sube al auto", getRootElement(), 255, 0, 0, true ) end end end ) ... Server-Side function crearAuto2() v2 = createVehicle ( 596, x, y, z ) end end addEvent("crearVehiculo2", true) addEventHandler("crearVehiculo2, crearAuto2) function crearAuto1() v1 = createVehicle ( 427, x, y, z ) end end addEvent("crearVehiculo1", true) addEventHandler("crearVehiculo1, crearAuto1)
  8. iFoReX

    que anda mal ?

    Lo intente toda la noche ayer asta las 3 a.m ._. y no pude Me podrias decir aunque sea como unirlos que funciones uno y eso ?
  9. iFoReX

    que anda mal ?

    sory por el doble post pero ayudenmme porfa es que esto es urgente
  10. eso ise yo solid pero nose como unirlos arriba esta el .lua
  11. nose si sirva ._. local coche1 = createVehicle ( vehicleID, x, y, z, rotX, rotY, rotZ ) local coche2 = createVehicle ( vehicleID, x, y, z, rotX, rotY, rotZ ) local coche3 = createVehicle ( vehicleID, x, y, z, rotX, rotY, rotZ ) local coche4 = createVehicle ( vehicleID, x, y, z, rotX, rotY, rotZ ) function CancelarEvento() cancelEvent () end addEventHandler ( "onVehicleStartEnter", CancelarEvento ) Buee pero no se como unirlos ._.
  12. lol creo q tendremos que esperar a solid ._.
  13. mmm... Si man pero 1 Problem : en ese .lua solo bloqueas autos para ese team , no se supone que querias que los otros teams no entraran ._. que enredado ._.
  14. Lo que no comprendo es como hacer que el script sepa el team, seria algo asi como: local team = getPlayerTeam (player) if Team = "MCC" then setVehicleLocked (coche1, true) elseif coche2 then setVehicleLocked (coche2, false) elseif coche3 then setVehicleLocked (coche3, true) elseif coche4 then setVehicleLocked (coche4, false) end Algo asi verdad? Podrias poner unos mensajes en el chatbox para que no crean que es un error ^^ local team = getPlayerTeam (player) local playerTeam = getPlayerTeam ( source ) if Team = "MCC" then setVehicleLocked (coche1, true) outputChatBox ( getPlayerName ( source ) .. " No puedes entrar a este vehiculo , es privado de los: " .. getTeamName ( playerTeam ) , 255,0,0) elseif coche2 then setVehicleLocked (coche2, false) elseif coche3 then setVehicleLocked (coche3, true) outputChatBox ( getPlayerName ( source ) .. " No puedes entrar a este vehiculo , es privado de los: " .. getTeamName ( playerTeam ) , 255,0,0) elseif coche4 then setVehicleLocked (coche4, false) end
  15. iFoReX

    GUI PRoblem :D

    I already done the Bindkey , but the players dont show in the GridList GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(247,116,339,383,"",false) guiSetVisible(GUIEditor_Window[1], false) guiSetVisible(GuiEditor_Window[2], false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Label[1] = guiCreateLabel(46,43,223,20,"PM a getPlayerName(getLocalPlayer())",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Memo[1] = guiCreateMemo(12,76,312,236,"",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) GUIEditor_Edit[1] = guiCreateEdit(12,318,239,38,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(252,315,78,44,"Enviar",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(84,122,163,376,"",false) guiWindowSetMovable(GUIEditor_Window[2],false) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Grid[1] = guiCreateGridList(9,26,145,338,false,GUIEditor_Window[2]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) local column = guiGridListAddColumn(GUIEditor_Grid[1], "Player", 0.85 ) if ( column ) then for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow(GUIEditor_Grid[1]) guiGridListSetItemText (GUIEditor_Grid[1], row, column, getPlayerName(playeritem ), false, false ) end end end bindKey("F7","down", function() if guiGetVisible(GUIEditor_Welcome[1]) then guiSetVisible(GUIEditor_Welcome[1], false) showCursor(false) else guiSetVisible(GUIEditor_Welcome[1], true) showCursor(true) elseif guiGetVisible(GUIEditor_Welcome[2]) then guiSerVisible(GUIEditor_Welcome[2], false) showCursor(false) else guiSetVisible(GUIEditor_Welcome[2], true) showCursor(true) end end) EDIT: the bindkey dont show the GUIs :c
  16. iFoReX

    GUI PRoblem :D

    Dont man the Grid dont is in Window
  17. iFoReX

    GUI PRoblem :D

    TALP and the Grid ?
  18. iFoReX

    GUI PRoblem :D

    x shadow but the Grid ?
  19. Help me with it I cant open the window and the grid GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(247,116,339,383,"",false) GUIEditor_Label[1] = guiCreateLabel(46,43,223,20,"PM a getPlayerName(getLocalPlayer())",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Memo[1] = guiCreateMemo(12,76,312,236,"",false,GUIEditor_Window[1]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) GUIEditor_Edit[1] = guiCreateEdit(12,318,239,38,"aaaa",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(252,315,78,44,"Enviar",false,GUIEditor_Window[1]) GUIEditor_Grid[1] = guiCreateGridList(63,119,184,377,false) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) local column = guiGridListAddColumn( playerList, "Player", 0.85 ) -- Create a 'players' column in the list if ( column ) then -- If the column was successfully created for id, playeritem in ipairs(getElementsByType("player")) do --Loop through all the players, adding them to the table local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) end end end bindKey("F7","down", function () guiSetVisible(GUIEditor_Grid[1], true) guiSetVisible(GUIEditor_Welcome[1], true) showCursor(true) end )
  20. iFoReX

    que anda mal ?

    me ayudarias ? es que nose casi nada de triggerserverevent o triggerclientevent please
  21. iFoReX

    que anda mal ?

    Man no puedo subirme al auto :c
  22. iFoReX

    que anda mal ?

    ok, this is my debugscript :
×
×
  • Create New...