Advertisement
Guest User

.

a guest
Sep 21st, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. function getPlayerStats ( thePlayer, theStat )
  2.     if ( isElement( thePlayer ) ) then
  3.         if ( stats[thePlayer] ) and ( stats[thePlayer][theStat] ) then
  4.                 return fromJSON(stats[thePlayer][theStat])
  5.         else
  6.             return false
  7.         end
  8.     else
  9.         return false
  10.     end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement