Code:
if(getPlayerStamina(cid) >= 28 * 60 * 1000) then
doPlayerSendCancel(cid, "test")
else
doPlayerSetStamina(cid, 39 * 60 * 1000)
end
This script give to all a full stamina: 42 * 60 * 1000, and he don't verify if stamina area higher 28 hours.
Anyone can resolve? I use tfs 0.4