Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. 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
  2. That script has server side functions, but is a client side script.
  3. Yeah, that's right, I guess I was too sleepy when did it.
  4. That's because you're using "client" as player element, but your player element is: "thePlayer".
  5. ---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 )
  6. Cambia el tiempo cada millisegundo o algo asi con: setTimer + setTime
  7. Castillo

    Events

    You're welcome.
  8. Castillo

    Events

    Yes, it'll call both functions.
  9. 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.
  10. 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 )
  11. Then what you're trying to send from server side is a nil value.
  12. I didn't understood much about it, although, we don't accept requests here.
  13. 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.
  14. Castillo

    Como hacer

    No entiendo que es el "jail ID".
  15. 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)
  16. Castillo

    Como hacer

    https://community.multitheftauto.com/ind ... ls&id=3251 Eso te podria ayudar talvez.
  17. 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
  18. That's because you must make a timer to be flashing. setTimer
  19. 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.
  20. 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...