Jump to content

Mr.Aleks

Members
  • Posts

    178
  • Joined

  • Last visited

Everything posted by Mr.Aleks

  1. function toggleGodMode(thePlayer) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then if getElementData(thePlayer,"invincible") == true then setElementData(thePlayer,"invincible",false) outputChatBox("God Mode is now Disabled.",thePlayer,0,255,0) else setElementData(thePlayer,"invincible",true) setElementData(thePlayer, "blood", 999999) outputChatBox("God Mode is now Enabled.",thePlayer,0,255,0) end end end addCommandHandler("godmode",toggleGodMode)
  2. To change the player's blood you have to use: setElementData(thePlayer, "blood" 9999999)--here you set to 'thePlayer' value '9999999' of blood.
  3. You have to search which is the data of the blood, then add it using for example setElementData(player, "blood", 9999999)
  4. I think in dayZ, the player's blood can be controlled using elementData.
  5. He probado la teoría de AlexTM de diferentes maneras y de todas y cada una de ellas me deja andar mientras hace la animación. (server-side) function animation (player) setPedAnimation(player, "ped", "phone_talk", 0) end addCommandHandler("anim", animation)
  6. So you can use onVehicleEnter, setElementData and getElementData. Then you can trigger the sound and delete it when you want.
  7. But do you want that the beep sounds when you get into the car? If that's what you want, you can add an event so when the player gets into the car if the elementData returns false it'll sound.
  8. Yes, by that way the user's money will save in the account.
  9. No, they're different. He has changed "pairs" by "ipairs".
  10. Lo que alexs y yo nos referimos es que tal y como lo pusiste no funcionaria, fijate en como queda el setElementData y revisa su syntax.
  11. Por obvios motivos, eso no funcionaria. * ¿Que es hijack? ¿Por qué no funcionaría? Tomas, revisa el código, si quitas la variable estás haciendo esto: setElementData(source,getElementData(source,"LinesofChat")+1)
  12. Bien, si lo que quieres es que se guarde, en vez de usar setElementData y getElementData puedes seguir el procedimiento que te he dicho antes pero usando setAccountData y getAccountData. De esta manera, quedará guardado en la "cuenta" de cada usuario.
  13. ¿Lo que quieres es asignarte un elementData en concreto y que cada vez que completes el hijack te suba "un punto"? De ser así podrías editar el propio script de hijack y agregar que cada vez que lo completes te agregue uno, por ejemplo. Digamos que al subir por primera vez al coche te asigna algo como: setElementData(source, "hijack", 0) function aumentarstat(player) local stat = getElementData(player, "hijack") -- en este caso devolvería el valor de stat del jugador que complete el hijack setElementData(player, "hijack", stat+1) -- si tenías stat 0, al completar el hijack te suma 1 al anterior end No sé si te referías a eso o a qué, podrías aclararte. * Hijack en inglés significa "secuestro", de ahí se supone de lo que trata el juego.
  14. If you use giveWeapon and you already have that weapon the ammo will rise. EDIT: But there are some weapons with the same ammo. I mean, if u have an AK and you use giveWeapon to give u a M4, the ammo will also rise. You can see it here: https://wiki.multitheftauto.com/wiki/Weapon
  15. Explícate mejor, o introduce el código para que podamos ver, dices que sabes pero no te aclaras.
  16. Can you show the code please? I wanna see the line where you put the animation.
  17. Como dice Tomas deberías usar getElementDimension. Después comparar en qué dimensión estás y que dependiendo de qué dimensión te muestre una u otra imagen. local dimension = getElementDimension(source) if dimension == 1 then elseif dimension == 2 then No sé si me explico.
  18. Lo que quieres hacer lo estás diciendo tu mismo, usa los elementData.
  19. No entendí lo que quieres hacer, explícate mejor.
  20. Mr.Aleks

    unBan

    El se refiere si hay alguna manera de saber, cuando alguien desbanea desde adminpanel, quién fue; si hay algún log o registro de quién le desbaneo.
  21. Te lo puedes bajar desde aquí: https://github.com/mabako/mta-paradise
  22. Al estar usando paradise, te recomiendo que uses: exports.factions:isPlayerInFaction(player, faction) Para condicionar si el jugador pertenece o no a la facción de policía. PD: Nadie te va a dar nada hecho, pero te recomiendo que no empieces un servidor de rol con paradise sin tener unos conocimientos mínimos.
×
×
  • Create New...