Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. So what is the problem?
  2. All these functions are server side only, that must be the server side. Also move this to the server side part too: function resourceStart(resource) setGameType("Race World") setMapName("RR 1.0") setRuleValue("Script Version", scriptVersion) setRuleValue("Author", "Shape") end
  3. Bad argument where?
  4. That script has server side functions, but is a client side script.
  5. Yeah, that's right, I guess I was too sleepy when did it.
  6. That's because you're using "client" as player element, but your player element is: "thePlayer".
  7. ---This Script Made By X-Shadow ! addCommandHandler ( "go", function ( player ) setTimer ( function ( ) for index, thePlayer in ipairs ( getElementsByType ( "player" ) ) do redirectPlayer ( thePlayer, "91.121.70.169", 22017 ) end end ,5000, 1 ) outputChatBox ( "You Will be Moved to the Server in 5 sec ...", player ) outputChatBox ( "Player ".. getPlayerName ( player ) .." Has Moved to the Server !", getRootElement(), 250, 255, 0 ) end )
  8. Cambia el tiempo cada millisegundo o algo asi con: setTimer + setTime
  9. Castillo

    Events

    You're welcome.
  10. Castillo

    Events

    Yes, it'll call both functions.
  11. Castillo

    Events

    You mean this? function test ( ) end addEventHandler ( "onPlayerJoin", "onPlayerQuit", root, test ) Then no. I guess you can make a custom function to add event handlers.
  12. Castillo

    Events

    You can attach as many event handlers as you want. E.g: function test ( ) end addEventHandler ( "onPlayerJoin", root, test ) addEventHandler ( "onPlayerQuit", root, test ) addEventHandler ( "onPlayerLogin", root, test )
  13. Then what you're trying to send from server side is a nil value.
  14. I didn't understood much about it, although, we don't accept requests here.
  15. Post your XML file.
  16. https://community.multitheftauto.com/index.php?p= ... ils&id=427 https://community.multitheftauto.com/index.php?p= ... ls&id=2133 These resources are nitro meters.
  17. Castillo

    Como hacer

    No entiendo que es el "jail ID".
  18. meniu = guiCreateWindow(233,164,600,440,"Meniu factiune",false) grid = guiCreateGridList(9,29,467,379,false,meniu) local nume = guiGridListAddColumn(grid,"Nume",0.2) function factiunemeniu(jucatori) local row = guiGridListAddRow(grid) guiGridListSetItemText(grid, row, nume, jucatori, false, false) end addEvent("factiunemeniu", true) addEventHandler("factiunemeniu", getRootElement(), factiunemeniu)
  19. Castillo

    Como hacer

    https://community.multitheftauto.com/ind ... ls&id=3251 Eso te podria ayudar talvez.
  20. De nada.
  21. You're welcome.
  22. addEvent("crear:Report",true) addEventHandler("crear:Report",root,function( motivo, descripcion, yo) local reporteXML = xmlCreateFile( ":reportGUI/reportes/"..motivo..".xml", "reporte" ) local contenido = xmlCreateChild( reporteXML, "reporte" ) local motivoXML = xmlNodeSetAttribute( contenido, "motivoR", motivo ) local descripcionXML = xmlNodeSetAttribute( contenido, "descripcionR", descripcion ) local creadorXML = xmlNodeSetAttribute( contenido, "creadorR", getPlayerName( yo ) ) local estadoXML = xmlNodeSetAttribute( contenido, "estadoR", 'no leido' ) xmlSaveFile(reporteXML) if ( reporteXML ) then outputChatBox("Reporte Creado Exitosamente, poniendolo en la lista de reportes...",source) addEventHandler("crearRow", root, crearRowF) end end ) addEvent("crearRow",true) function crearRowF(motivo) local reporte = xmlLoadFile( ":reportGUI/reportes/"..motivo..".xml") if ( reporte ) then local contenido = xmlFindChild( reporte, "reporte" ) local motivoXML = xmlNodeGetAttribute( contenido, "motivoR" ) local descripcionXML = xmlNodeGetAttribute( contenido, "descripcionR" ) local creadorXML = xmlNodeGetAttribute( contenido, "creadorR" ) local estadoXML = xmlNodeGetAttribute( contenido, "estadoR" ) end end
  23. That's because you must make a timer to be flashing. setTimer
  24. function party ( ) setSkyGradient ( math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255) ) end addEventHandler ( "onClientResourceStart", resourceRoot, party ) -- You forgot to attach it to your function.
  25. El segundo argumento de addCommandHandler server side es el nombre del comando. function teamsa ( thePlayer, cmd, playerName ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) local player = getPlayerFromName ( playerName ) local teams = getTeamFromName ( 'Umbrella') if isObjectInACLGroup ("user.".. accName, aclGetGroup ( "LiderUmbrella" ) ) and ( player ) and ( teams ) then setPlayerTeam ( player, teams ) end end addCommandHandler ( "quitarumbrella", teamsa )
×
×
  • Create New...