Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    if not

    Ah, "~=" means not equal to.
  2. Castillo

    if not

    function test ( boolean ) if ( boolean ) then -- If 'boolean' is not false or nil. outputChatBox ( "Hello World!" ) else -- If boolean is false or nil. outputChatBox ( "Bye cruel World!" ) end end test ( true ) test ( false ) Is that what you meant?
  3. https://community.multitheftauto.com/ind ... ls&id=3777 The user who posted it requests for removal. DONE
  4. Bueno, yo diria que deberias usar las funciones de XML ( si lo queres guardar en el cliente ). https://wiki.multitheftauto.com/wiki/Cli ... _functions
  5. Castillo

    Spawn

    function name1 ( ) if ( rowCitySF ) then local row, col = guiGridListGetSelectedItem ( source ) if ( row and col and row ~= -1 and col ~= -1 ) then local cityName = guiGridListGetItemText ( source, row, 1 ) if ( cityName == "San Francisco" ) then guiGridListClear ( grid_groups ) rowGroupsPolice = guiGridListAddRow ( grid_groups ) guiGridListSetItemText ( grid_groups, rowGroupsPolice, columnGroups, "Police", false, false ) end end end end addEventHandler ( "onClientGUIClick", grid_city, name1, false )
  6. Creo que esta hablando de hacer un script para guardar posiciones y luego poder cargarlas rapidamente.
  7. Editing the zombies script, yes.
  8. You forgot to define 'thePlayer' argument here: function destroyGroup()
  9. https://wiki.multitheftauto.com/wiki/Set ... rOpenRatio
  10. Castillo

    Remove Vote Map

    Go to "race/modes/base.lua" and replace this function: function RaceMode.startNextMapSelect() if stateAllowsNextMapSelect() then gotoState('NextMapSelect') Countdown.destroyAll() destroyAllMessages() if g_GameOptions.randommaps then startRandomMap() else startNextMapVote() end end end With: function RaceMode.startNextMapSelect() if stateAllowsNextMapSelect() then gotoState('NextMapSelect') Countdown.destroyAll() destroyAllMessages() if g_GameOptions.randommaps then startRandomMap() end end end
  11. No es ese el problema pekio. AlvareZ: El problema es aca: outputChatBox("#FF0000[LOGIN] #00FF00El Jugador "getPlayerName(source).."#00FF00a logeado BIENVENIDO!", root, r, g, b, false) Te faltan dos puntos al principio de getPlayerName.
  12. Castillo

    Spawn

    La unica manera de saberlo es probandolo. P.D: Te falta algo para ejecutar la funcion esa.
  13. Castillo

    Spawn

    Crea un ped con createPed
  14. There's no need for a server side script. addEventHandler ( "onClientRender", getRootElement(), function ( ) if guiGetVisible ( GUIEditor.label[9] ) then local team = getPlayerTeam ( localPlayer ) local teamName = ( team and getTeamName ( team ) or "" ) guiSetText ( GUIEditor.label[9], "Team: " .. teamName ) end end )
  15. Tiene solo un argumento, asi que si lo desactivas, ningun interior tendra musica. setInteriorSoundsEnabled ( false )
  16. Castillo

    Packer

    Podrias pegarlos al camion con: attachElements
  17. Castillo

    Funciones

    Es "getElementType" no "getElementsType", el resto esta bien.
  18. https://wiki.multitheftauto.com/wiki/Set ... ndsEnabled
  19. vehicle = createVehicle ( 411, 0, 0, 0 ) setElementInterior ( vehicle, 1 )
  20. Castillo

    Funciones

    Si lo haces client side, si.
×
×
  • Create New...