Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Reading tutorials/manuals, trial & error is the best method.
  2. Castillo

    Xiti userpanel

    Yeah, well, everyone can say that. Next time, try to "buy" it from someone who will fix the bugs. Topic locked.
  3. Use a timer. setTimer
  4. function equi ( ) setPedStat ( source, 75, 500 ) end addEventHandler ( "onPlayerJoin", root, equi ) addEventHandler ( "onPlayerWasted", root, function ( _, killer ) if ( killer and getElementType ( killer ) == "player" ) then local current = getPedStat ( killer, 75 ) setPedStat ( killer, 75, ( current + 100 ) ) end end )
  5. local r, g, b = getTeamColor(getPlayerTeam(player)) local blip = createBlipAttachedTo(player, 0, 2, r, g, b, 255, 1) outputChatBox ( "#FFFF00*INFO* #00FF00Invisible Disable", source, 0, 255, 0, true ) Tu elemento es 'source' no 'player'.
  6. Lo suponia, quita 'source' del nombre de la funcion: function toggleInvis ( source )
  7. Como que 6 numeros en total? algunas coordenadas van a devolver menos de 4 digitos.
  8. Con eso deberia funcionar. Mostrame como ejecutas este evento: "goooogles".
  9. Porque no lo haces server side?
  10. Usa esta funcion ( no es nativa del MTA, necesitas copiar el codigo de la funcion ): https://wiki.multitheftauto.com/wiki/Math.round
  11. Como que se va hasta el "else"? el "else" lo estas usando para hacer otra cosa si el elemento no existe o no es un jugador.
  12. Records are available to donators, as far as I know.
  13. We don't give support with leaked scripts. Topic locked.
  14. addEventHandler("onClientPlayerDamage", getRootElement(), bot) Tiene que ir despues del ultimo 'end', ademas, 'slothbot1' no esta definido en el server side?
  15. I have no idea, you can use CrystalMV's idea though.
  16. That's because the element data "Score" is never set, maybe you put wrong data name.
  17. addEventHandler ( "onClientRender", root, function ( ) local it = getPlayerName ( localPlayer ):gsub ( "#%x%x%x%x%x%x", "" ) local score = tostring ( tonumber ( getElementData ( localplayer, "Score" ) ) or 0 ) local money = tostring ( getPlayerMoney ( ) ) dxDrawRectangle(0, 725, 1024, 43, tocolor(0, 155, 255, 160), true) dxDrawText("Nick:"..it, 90, 730, 362, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:"..it, 90, 728, 362, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:"..it, 88, 730, 360, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:"..it, 88, 728, 360, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:"..it, 89, 729, 361, 758, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..score, 367, 730, 639, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..score, 367, 728, 639, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..score, 365, 730, 637, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..score, 365, 728, 637, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..score, 366, 729, 638, 758, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..money.."$", 643, 730, 915, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..money.."$", 643, 728, 915, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..money.."$", 641, 730, 913, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..money.."$", 641, 728, 913, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..money.."$", 642, 729, 914, 758, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) end )
  18. No, wrong. addEventHandler("onClientRender", root, function() local it = getPlayerName ( localPlayer ) local score = tostring ( getElementData(localplayer, "Score") ) local money = getPlayerMoney() dxDrawRectangle(0, 725, 1024, 43, tocolor(0, 155, 255, 160), true) dxDrawText("Nick:"..it, 90, 730, 362, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:"..it, 90, 728, 362, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:"..it, 88, 730, 360, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:"..it, 88, 728, 360, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Nick:"..it, 89, 729, 361, 758, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..score, 367, 730, 639, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..score, 367, 728, 639, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..score, 365, 730, 637, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..score, 365, 728, 637, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Score:"..score, 366, 729, 638, 758, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..money.."$", 643, 730, 915, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..money.."$", 643, 728, 915, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..money.."$", 641, 730, 913, 759, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..money.."$", 641, 728, 913, 757, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) dxDrawText("Money:"..money.."$", 642, 729, 914, 758, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "bottom", false, false, true, false, false) end )
  19. I don't know, upload the one we're talking about...?
  20. Upload the entire resoruce to mediafire.com and paste here the link.
  21. You are using the IPs from the example, "play.mtabeta.com:33004", change that and the other to your server IP/port.
×
×
  • Create New...