Jump to content

Phase

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Phase

  1. Thank you guys! Glod bless yall.
  2. Hello guys. I want to make a script for my mta server. The Player have hunger and thirst, I want to make a script what kills the player if the players hunger or thirst went down 0. I show you my script. setTimer( function() local hunger = getElementData(localPlayer, "Player:Hunger") if (hunger > 0) then setElementData(localPlayer, "Player:Hunger", hunger - 2) end local thirst = getElementData(localPlayer, "Player:Thirst") if (thirst > 0) then setElementData(localPlayer, "Player:Thirst", thirst - 3) end end , 150000,0) function ehenhalt ( localPlayer ) if (hunger < 0) then killPed ( localPlayer) end addCommandHandler ( "kill", ehenhalt ) Please help me, god bless yall.
×
×
  • Create New...