Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Al agregar el jugador a la tabla, fijate que devuelve usando un outputChatBox/outputDebugString.
  2. Castillo

    Ayuda

    Con addCommandHandler, agregas otro argumento y listo.
  3. es dxDrawRectangle no dxCreateRectangle., y onClientGUIClick no onClientGuiClick.
  4. Castillo

    Help!

    You're welcome.
  5. Castillo

    Help!

    No, is a temporary issue, just wait.
  6. Castillo

    Help!

    Is a game monitor problem as far as I know, you can't do anything about it.
  7. Castillo

    Help!

    Don't worry about that, is not a problem of your server.
  8. It is possible as far as I know.
  9. Creo que a lo que se referia Alexs era a que hagas un sistema propio de AI, no que uses uno para crear un bot.
  10. Make sure that no other script is using the same event "cars".
  11. That's because is set to show it. function onClientClick (button, state, absoluteX, absoluteYe) if (source == GUIEditor.button[2]) then guiSetVisible(GUIEditor.window[1],true) showCursor(false) end end addEventHandler ("onClientGUIClick", GUIEditor.button[2], onClientClick) guiSetVisible(GUIEditor.window[1],true) Change that true to false.
  12. addEvent ( "cars", true ) addEventHandler ( "cars", getRootElement(), function ( cars ) if isElement ( veh ) then destroyElement ( veh ) end local cn = getVehicleModelFromName ( cars ) local x,y,z = getElementPosition ( source ) local cn2 = getVehicleNameFromModel ( cn ) veh = createVehicle ( cn, x, y, z ) setVehicleColor ( veh, 238, 180, 34 ) warpPedIntoVehicle ( source, veh ) outputChatBox ( "* "..cn2.." was created!" ) end )
  13. Castillo

    Help script

    local weekdays = { [ 1 ] = "Sunday", [ 2 ] = "Monday", [ 3 ] = "Tuesday", [ 4 ] = "Wednesday", [ 5 ] = "Thursday", [ 6 ] = "Friday", [ 7 ] = "Saturday" } function getDayName ( ) local realTime = getRealTime ( ) return weekdays [ realTime.monthday ] end
  14. Castillo

    Help script

    What do you mean by "the day"? you mean the real day name?
  15. Castillo

    Ayuda

    Debes usar las siguientes funciones: addCommandHandler -- Agrega un comando. getPlayerFromName -- Obtiene un jugador por su nombre completo. setPedAnimation -- Le da una animacion a un player/ped.
  16. Como lo sospechaba, era un script robado. Tema cerrado.
  17. Maybe you did it wrong, have you added it to the mtaserver.conf and the module to "modules" folder?
  18. I don't see any problem on the server side.
  19. "300" /> local xml = getResourceConfig ( "settings.xml" ) local child = xmlFindChild ( xml, "settings", 0 ) local timerset = xmlNodeGetAttribute ( child, "timer" ) function JustATest ( ) outputChatBox ( "testing this" ) end setTimer ( JustATest, tonumber ( timerset ), 0 ) Try that.
  20. Crea una tabla con los skins y luego usa math.random para obtener uno aleatorio de esa tabla.
×
×
  • Create New...