Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    playsound

    You do it like with any other element. isElement ( sound )
  2. That'll teleport the marker, not the player, since you are using 'source' instead of 'hitElement'.
  3. This is not a request forum, so if you don't want to learn to make it by your own, pay someone, but nobody's going to do it for you because you don't want to learn how to do it.
  4. Castillo

    acl events?

    Yes, as far as i know.
  5. Castillo

    acl events?

    You could overwrite the function, but that would mean that you would need to use that new function every time you want to edit the ACL.
  6. Castillo

    acl events?

    If there isn't any on the wiki events page, then no.
  7. spawnPlayer is a server side-only function, you must use: triggerServerEvent to trigger a server event, then spawn him server side.
  8. Yes, I noticed about that and fixed it before he could see it.
  9. My code is pretty much the same as TAPL's, it has to work. Edit: I just tested it and works.
  10. Castillo

    Scoreboard, bugged

    First, leave the server you are at, then: Go to: MTA San Andreas 1.3\mods\deathmatch\resources\scoreboard\ And remove: "settings.xml".
  11. onMarkerHit has only ONE player argument, 'source' is the marker that got hit, and is already defined by itself. theMarker = createMarker ( x, y, z, "cylinder", 2, 255, 255, 0, 170 ) addEventHandler ( "onMarkerHit", theMarker, function ( thePlayer ) if ( getElementType ( thePlayer ) == "player" ) then if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Police" ) ) then setElementPosition ( thePlayer, x, y, z ) end end end )
  12. Instead of: getRootElement() You must use a player element, like this: outputChatBox ( "bla bla", getPlayerFromName ( "someguy" ), 255, 0, 0, true ) Be aware that this is just an example, you don't have to use getPlayerFromName, it could be different.
  13. For what I see, you don't have much experience with Lua, you'll need at least basic to achieve this.
  14. Ya te dio la funcion para crear zonas en el mapa, ahora fijate en la wiki sobre sus argumentos y sintaxis. P.D: Casi todas las funciones tienen ejemplos.
  15. Castillo

    help hud

    You can create a "cutscene", "wide screen" and set the camera positions.
  16. Lo tenes puesto como server side "vallejo" type="script" name="info" description="" /> "vallejo" type="script" name="info" description="" /> Y en el script: addEventHandler("onClientRender", root, function () dxDrawRectangle(322, 0, 661, 28, tocolor(0, 0, 0, 255), true) dxDrawText("Join test", 414, 0, 901, 20, tocolor(0, 241, 0, 255), 1, "default-bold", "center", "bottom", false, false, true, false, false) dxDrawText("Join test", 414, 0, 901, 20, tocolor(0, 241, 0, 255), 1, "default-bold", "center", "bottom", false, false, true, false, false) end )
  17. \server\mods\deathmatch\resources\
  18. I don't understand, the player blips are visible if you create them on MTA with: createBlip or createBlipAttachedTo
  19. He's talking about this resource: https://community.multitheftauto.com/ind ... ls&id=1152 @andiyer: You would need to edit the script and add it so it creates all the teams on start.
  20. Castillo

    Top ten

    If you don't explain your problem, we can't help you.
  21. for _, group in ipairs ( { "Admin", "Moderator", "SuperModerator", "Fundador", "VIP" } ) do if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( group ) ) then P.D: Vas a necesitar poner otro 'end' para cerrar el for-loop.
  22. Cambia: addEventHandler ( "onClientDoubleClick", root, use, false ) A: addEventHandler ( "onClientDoubleClick", grid, use, false )
×
×
  • Create New...