Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. If this is a request, I must tell you that we don't accept requests here, you must learn to make it by yourself or pay someone to do it for you.
  2. Castillo

    Ayudita

    Lo tenes puesto como server side el script, no?
  3. Yes, I started it before go in the interior.
  4. Castillo

    Ayudita

    addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, function ( ) local posX, posY, posZ = getElementPosition ( source ) if ( getElementModel ( source ) == 22 ) then createExplosion ( posX, posY, posZ, 10 ) end end )
  5. Dice que al spawnpoint le falta o esta incorrecta la posicion "x".
  6. Castillo

    help

    That doesn't make any sense. What are you trying to do?
  7. I've started it, it output some info to the chatbox ( video card name, anti-aliasing setting value, and other stuff ) and all I see is a black rectangle on the bottom of my screen.
  8. Castillo

    Solved

    He told you to use addEvent, not addEventHandler twice. Also, as he said, the client side won't be loaded for when "onPlayerJoin" is triggered.
  9. From your registration system you can trigger an event, then you can use it whenever you need, but such event doesn't exist by default.
  10. You must return the camera to the local player using setCameraTarget. local visible = true setCameraMatrix ( 117.5101852417, 163.30557250977, 5579.2065429688, 116.48139190674, 156.49519348145, 5579.0087890625 ) local progress = 0.0; function aa ( ) if ( progress < 1 ) then progress = progress + 0.002; -- increase to move the camera faster end local x, y, z = interpolateBetween ( 117.5101852417, 163.30557250977, 5579.2065429688, 120.94383239746,162.29713439941,5579.5678710938, progress, "Linear" ); setCameraMatrix ( x, y, z, 116.48139190674, 156.49519348145, 5579.0087890625 ) end addEventHandler ( "onClientRender", root, aa ) bindKey ( "F6", "down", function ( ) if ( visible ) then removeEventHandler ( "onClientRender", root, aa ) setCameraTarget ( localPlayer ) visible = false else addEventHandler ( "onClientRender", root, aa ) visible = true end end )
  11. Create a table, then insert the players that joined the event there, then loop that table.
  12. Here's an useful function, not sure if it works though: https://wiki.multitheftauto.com/wiki/DxDrawImage3D
  13. Y sigue sin funcionar?
  14. Tenes que cargar la module de mysql: https://wiki.multitheftauto.com/wiki/Mysql
  15. Castillo

    help me

    The unix socket is required if he's not using Windows ( as far as I know ).
  16. That's wrong, there's a limit for peds ( there's a max element limit ) ( not sure if a player slot maximum too ), the element limit is: 65535
  17. It keeps saying that because the client script is not yet loaded for when the player joins, you must trigger a server side event from the client side when the resource starts ( onClientResourceStart + triggerServerEvent ).
  18. call ( getResourceFromName ( "scoreboard" ), "scoreboardAddColumn", "Ocupacion", root, 100 ) function ocupacion ( ) local theSkinID = getElementModel ( source ) if ( theSkinID == 280 ) then setElementData ( source, "Ocupacion", "Policia" ) end end addEventHandler ( "onPlayerSpawn", getRootElement(), ocupacion )
  19. That function is bugged on the server side, returns wrong data.
  20. Estas usando addEventHandler, no addCommandHandler en "colouredChat".
  21. That's because "songOn" is set to true for when next map starts.
  22. Castillo

    Cleo mods

    No, no se puede.
×
×
  • Create New...