Jump to content

Sticmy

Members
  • Posts

    254
  • Joined

  • Last visited

Everything posted by Sticmy

  1. local Wacc = getAccountName(getPlayerAccount(thePlayer))
  2. Sticmy

    HELP Please

    function vipReplaceModele () local account = getPlayerAccount(source) if isObjectInACLGroup ("user."..getAccountName( account ), aclGetGroup ( "VIP" ) ) then triggerClientEvent (source, "onReplace", source ) end end addEventHandler('onPlayerLogin', root, vipReplaceModele) function replaceModele () local txd = engineLoadTXD("hydra.txd") engineImportTXD(txd, 520) local dff = engineLoadDFF("hydra.dff", 520) engineReplaceModel(dff, 520) end addEvent( "onReplace", true ) addEventHandler( "onReplace", root, replaceModele ) Try it i did some changes i tried it in my local and it works
  3. pública tu código, es usar dos funciones que son: setElementData y getElementData.
  4. Debes usar un getElementData para obtener el data del jugador. y si quieres hacer que el tiempo baje usa el setTimer
  5. lol forget the onClientRender sorry event
  6. Put the second you want if it appears in 30 seconds or whatever seconds you want
  7. setTimer(function() local time = getRealTime() local hours = time.hour local minutes = time.minute if hours == 7 and minutes == 00 then outputChatBox("Time: "..hours..":"..minute"", source, 255, 0, 0) givePlayerMoney(source, 1500) end end, 1000, 0) i have not tried it
  8. Sticmy

    Pregunta

    Quizás sea por el size del guiCreateFont
  9. Have you given permissions to the admin panel? If it does not work, use it : resource.script in the group ACL Name "Admin"
  10. No es necesario eso hacerlo con sql.. para obtener toda las datas de un jugador getAllElementData(getPlayerAccount(thePlayer)) Si es sobre accountData getAllAccountData(getPlayerAccount(thePlayer)) y para que puedas modificar una data es: setElementData y accountData: setAccountData PD:No se si me explico bien jeje
  11. Yo uso cache y no me gusta compilar mis cosas pero también yo mismo hice un propio sistema de proteger mis cosas cuando hay alguien que me lo robo. Te recomiendo que uses mysql o data para que solamente funcionen obteniendo tal data o mysql.
  12. Sticmy

    Player name

    Why use elementData? Using these functions can make the player to enter a server with 3 characteristics do not enter that must have more than 3 characteristics?
  13. change the ThePlayer in hitElement all
  14. Sticmy

    Player name

    Hi i would like to know how i can do that a player can put more than 3 letters in their names, i do not know if i can explain myself. Please help me i' am sorry for my English, i do not know so much
  15. That function I always use and I do well
  16. toggleAllControls ( false ) in the part where you open the panel and if it is server side toggleAllControls ( thePlayer, false ) Here is the function: https://wiki.multitheftauto.com/wiki/ToggleAllControls PD: i'm sorry but i do not know much english
  17. Si ya lo arregle man Ya ando listo para configurar mi local, poder scriptear y hacer lo que me gusta
  18. Hola quisiera saber porque me kickea en mi propio local y cuando entró en un server también me da kick porque me dan kick??
  19. man he hecho lo que me dices pero sigue..
  20. El error sigue por favor ayúdenme
  21. Ah ya entendí, veré si funciona
  22. No hay ningún fallo man Prueba el código en tu local y verás..
  23. Por más que lo ponga derecho el problema sigue al mover la cámara se ancha más y baja más...
  24. Hola chicos del MTA! Tengo un problema que no tengo idea de como resolverlo.. Lo que pasa es que quisiera que quede así la Rectangle PD: Lo hice con el guieditor para hacerme explicar Pero cuando pongo el Rectangle se pone así cuando muevo cámara se pone así también Alguna manera de arreglarlo dejo la función aquí mismo! addEventHandler("onClientRender", root, function() for k, v in ipairs(getElementsByType("ped")) do local x, y, z = getElementPosition(localPlayer) local x2, y2, z2 = getElementPosition(v) local a, b = 100, 100 local cx, cy, cz = getCameraMatrix() if getDistanceBetweenPoints3D(x, y, z, x2, y2, z2 + 0.5) < 7 and isLineOfSightClear(cx, cy, cz, x2, y2, z2 + 0.5, true, true, false) then local sx, sy = getScreenFromWorldPosition(x2, y2, z2 + 0.5) if sx and sy then sx, sy = sx - a, sy - b dxDrawRectangle(sx - 10, sy, sx + 20, sy + 20, tocolor(0, 0, 0, 100)) dxDrawText("Salud: ".. math.ceil(getElementHealth(v)).."", sx - 10, sy, sx + 500, sy + 500, tocolor(0, 255, 0, 100), 1.2, "default-bold") end end end end ) Por favor necesito ayuda es para mi Roleplay
  25. Me encanta el roleplay! PD: Ahí entró a ver tus sistemas..
×
×
  • Create New...