roriscrave
Advanced OT User
- Joined
- Dec 7, 2011
- Messages
- 1,210
- Solutions
- 35
- Reaction score
- 207
Hi guys, what is the better form (will get less time to run the script).
1)
2)
1)
Code:
if type == STATSCHANGE_HEALTHLOSS and value >= getCreatureHealth(cid) and getPlayerStorageValue(cid, 150) == 1 then
function
return true
end
2)
Code:
if getPlayerStorageValue(cid, 150) == 1 then
if type == STATSCHANGE_HEALTHLOSS and value >= getCreatureHealth(cid) then
function
end
end
return true
end