Jump to content

Calculador

Members
  • Posts

    197
  • Joined

Everything posted by Calculador

  1. Es buen aporte, pero he visto otro error que deberías corregir y este es la coma al lado del "getRootElement ( )", coma que es necesaria ó de lo contrario el script no funcionaría.
  2. Calculador

    Ayuda

    Ya intente y no me funciono, es decir no carga el browser con ese archivo html
  3. ¿Viste el vídeo?, él quiere algo como un cine.
  4. Creo que no se refiere a el Gamemode Roleplay como tal, él creará un RPG.
  5. Tranquilo, efectivamente esté codigo está apto para client, ya que contiene funciones dx, sólo crea tu archivo lua, luego identifica en el meta que ese archivo es client, una vez hecho esto pega eso que hiciste en guieditor y te funcionará.
  6. addEventHandler( "onClientPlayerWasted", root, function () local x,y,z = getElementPosition (localPlayer) Death = exports.customblips:createCustomBlip ( x,y, 10, 10, "img.png" ) setTimer ( function () exports.customblips:destroyCustomBlip(Death) end, 30000, 1) end)
  7. perhaps this... https://community.multitheftauto.com/in ... ls&id=7098
  8. Calculador

    problema

    Quizá no estás poniendo el argumento de la forma adecuada.
  9. lo que puedes hacer es poner que el setTimer se ejecute 1 vez cuando el jugador use el comando, al ejecutarse 1 vez, se stopea por si solo. setTimer ( colorescoches, 1000, 1) El 1 hará que solo se repita 1 vez solo. Es buena tu opinión, pero él quiere que se repita indefinidas veces para que se vea como un rainbow (Famoso de los servers race).
  10. Prueba esto: function colorescoches (player, cmd) if cmd == "color" then if hasObjectPermissionTo(player, "command.setgroup", false ) then if isPedInVehicle ( player ) then local uVehicle = getPedOccupiedVehicle( player ) if uVehicle then tiempo = setTimer (function () setVehicleColor( uVehicle, math.random( 255 ), math.random( 255 ), math.random( 255) ) end, 50, 0) else outputChatBox("Debes estar en un vehículo para utilizar este comando", player, 255, 0, 0) end else outputChatBox("Acceso Denegado", player, 255, 0, 0) end elseif cmd == "parar" then if isTimer ( tiempo ) then killTimer ( tiempo ) end end end end addCommandHandler("color", colorescoches) addCommandHandler("parar", colorescoches)
  11. Pero no se puede usar. "Note: You cannot use "list" or "test" as command name."
  12. It looks great, good job!
  13. Ohh okay, sorry , yes you could use this: local Data = getElementData(player,"theData") if (Data == 5) then outputChatBox("ur LVL 5! gz") end or as my friend said:
  14. Exactamente, tienes la razón polluelo, ni "test", ni "list".
  15. Yes is possible, with this function: getElementData as does your title
  16. Where this i must used? Can you please used in this post? only where is animations Well, this is a example, with command /anim you do a dance animation and after 5 seconds you stop doing the animation. function test (thePlayer) setPedAnimation ( thePlayer, "DANCING", "dnce_m_b") -- animation setTimer(setPedAnimation, 5000, 1, thePlayer, false) -- after 5 seconds the animation is false. end addCommandHandler("anim", test)
  17. You could tell me exactly what do you want and i will help you.
  18. Sure is intervening the mod Dayz, but i dont have idea.
  19. Mmmh. What do you want exactly?
  20. Sí. Podrías usar: removeEventHandler
×
×
  • Create New...