setTimer(function()
if getPedControlState(localPlayer, "walk") and getPedControlState(localPlayer, "jump")==false and getPedControlState(localPlayer, "sprint")==false then
setElementData(localPlayer, "player:fatigue", getElementData(localPlayer, "player:fatigue")+1)
end
end,50,0)
setTimer(function()
if getPedControlState(localPlayer, "sprint") then
setElementData(localPlayer, "player:fatigue", getElementData(localPlayer, "player:fatigue")-1)
end
end,500,0)
setTimer(function()
if getPedControlState(localPlayer, "jump") then
setElementData(localPlayer, "player:fatigue", getElementData(localPlayer, "player:fatigue")-1)
end
end,500,0)
setTimer(function()
if getPedControlState(localPlayer, "walk") and getPedControlState(localPlayer, "jump")==false and getPedControlState(localPlayer, "sprint")==false then
setElementData(localPlayer, "player:fatigue", getElementData(localPlayer, "player:fatigue")+1)
end
end,50,0)
setTimer(function()
if getPedControlState(localPlayer, "sprint") then
setElementData(localPlayer, "player:fatigue", getElementData(localPlayer, "player:fatigue")-1)
end
end,500,0)
setTimer(function()
if getPedControlState(localPlayer, "jump") then
setElementData(localPlayer, "player:fatigue", getElementData(localPlayer, "player:fatigue")-1)
end
end,500,0)
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach