• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua getPlayerStamina(cid) and doPlayerAddStamina(cid, ???)

LucasFerraz

Systems Analyst
Joined
Jun 10, 2010
Messages
2,857
Reaction score
96
Location
Brazil
How can I check if 1 hour and how can I remove 1 hour?

if getPlayerStamina(cid) < 1 hour?
doPlayerAddStamina(cid, 1 hour)

I'm using it but always false
if (getPlayerStamina(cid) < 1 * 60 * 1000) then
ALWAYS FALSE /\


EDIT (Solution)
Code:
if getPlayerStamina(cid) < 60 then
2520 (minutes) / 60 = 42 hours
 
Last edited:
Back
Top