Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ LIB FUNCTIONS(* is end)
- TAKE IT AT /DATA/LIB/050-FUNCTIONS OR CREATE NEW FILE
- ]]
- function getK(player)
- local K = getPlayerStorageValue(player, 37298)
- return K > 0 and K or 0
- end
- function getD(player)
- local D = getPlayerStorageValue(player, 37299)
- return D > 0 and D or 0
- end
- function getKD(player)
- return getK(player) / getD(player)
- end
- function updateK(player)
- local K = getK(player)
- doSendAnimatedText(getThingPos(player), "1+", 210)
- return setPlayerStorageValue(player, 37298, K + 1)
- end
- function updateD(player)
- local D = getD(player)
- doSendAnimatedText(getThingPos(player), "1+", 250)
- return setPlayerStorageValue(player, 37299, D + 1)
- end
- -- *
Advertisement
Add Comment
Please, Sign In to add comment