Jump to content

Search the Community

Showing results for tags 'fome'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 4 results

  1. Olá Tenho esse script atualmente de fome e sede porem ele tambem da fome e sede para os staff eu gostaria de colocar para quem tem acl "Staff" nao ter sede nem fome alguem conseguiria me ajudar porfavor? Script Retirado da Internet timeFome = 108000 timeSede = 72000 function repeatFome() if getElementData(localPlayer, "afkdate") == true then return end if getElementData(localPlayer, "Fome:Logado") == true then dataFome = getElementData(localPlayer, "hunger") -1 setFome = setElementData(localPlayer, "hunger", dataFome) if getElementData(localPlayer, "hunger") <= 0 then setElementData(localPlayer, "hunger", 10) setElementHealth(localPlayer, 0) end end end setTimer(repeatFome, timeFome, 0) function repeatSede() if getElementData(localPlayer, "afkdate") == true then return end if getElementData(localPlayer, "Sede:Logado") == true then Sede = getElementData(localPlayer, "sede") -1 SetarSede = setElementData(localPlayer, "sede", Sede) if getElementData(localPlayer, "sede") <= 0 then setElementData(localPlayer, "sede", 10) setElementHealth(localPlayer, 0) end end end setTimer(repeatSede, timeSede, 0) function VerificarFomeRepeat() if getElementData(localPlayer, "Fome:Logado") == true then Fome = getElementData(localPlayer, "hunger") if Fome > 100 then setElementData(localPlayer, "hunger", 100) end end end setTimer(VerificarFomeRepeat, 50, 0) function VerificarSedeRepeat() if getElementData(localPlayer, "Sede:Logado") == true then Sede = getElementData(localPlayer, "sede") if Sede > 100 then setElementData(localPlayer, "sede", 100) end end end setTimer(VerificarSedeRepeat, 50, 0)
  2. Bom dia, tarde ou noite. Estava editando alguns scripts/huds e tentando torna-los compatíveis, porém encontrei alguns problemas, lembrando que sou apenas um iniciante e não tenho conhecimento algum em Script, todos os conhecimentos que obtive foi observando tutoriais e usando a logica : O sistema de fome, Sede e Sono estão incluso na HUD, são funcionais porém, não existe maneira de reabastece-los, ou seja : - O Sistema tem sua própria fome, O HUD está sincronizado com a fome ( Ela diminui), igualmente para sede e sono(Apenas repliquei os arquivos e mudei os nomes deixando-os mais logico possível), porém não existe maneira de faze-las retornar ao ''máximo'', ou seja²: - O Player não tem uma ''loja'' ou comida para ingerir e nem uma cama pra dormir(Press F to Pay Respect)(Sad dmais). - Minha ideia inicial era deixar a HUD Oculta e aparecer quando eu pressionar certo botão ''TAB'' (RESOLVIDO) Aguardo uma resposta para explicar mais detalhes e postar o script/hud se necessário. (claro que vai ser né Saulo) (Não me leve a mal, Apenas preciso sentir que tem alguem do outro lado)
  3. Olá novamente ? , provavelmente estou quebrando uma regra do fórum (que no caso seria criar + de 1 tópico sobre o mesmo assunto, mas o tópico anterior meu foi trancado) e peço desculpas, mas... Bom tenho algumas duvidas 1 - como posso fazer um circulo marcar a vida como a foto deste link : foto.png 2 - como posso fazer com que o player ao sentir fome ou sede perca vida aos poucos, e o mesmo circulo citado na duvida acima marque o quanto o player sente de fome e sede. 3 - ultima duvida é como salvar isso quando o player sair e um sistema de compra de lanches e bebidas para eles poderem compra ( OBS: Já tentei utilizar, alguns setElementData, getElementData, setElementHealth junto com um setTimer mas não ficou de uma forma legal ficou meio bugado, e o circulo desproporcional ) Agradeço a todos desde já
  4. Oi, tudo bem ? bom achei esse script de fome da community e fiquei com uma duvida dessa parte. Como faço para tira money do jogador quando ele fome? Não sei com essa metade do codigo vc pd me ajuda (Se precisarem do codigo todo do fala) addEventHandler ("onClientMarkerHit",getRootElement(), function(hitEle,dim) if (getLocalPlayer() == hitEle) and (getElementData (source,"HAMBURGER!") == true) then if (getHungerState (hitEle) < 100) then setHungerState (hitEle,100) outputChatBox ("Você acabou com sua fome :3",255,0,255,false) else outputChatBox ("Você não está com fome!",255,0,255,false) end end end)
×
×
  • Create New...