Untitled
By: a guest | Feb 9th, 2010 | Syntax:
Lua | Size: 0.47 KB | Hits: 186 | Expires: Never
function getPlayerFrags(name)
return db.getResult("SELECT frags FROM players WHERE name="..db.escapeString(name)..""):getDataInt("frags")
end
function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) then
doPlayerSendTextMessage(cid, 25, (thing.uid == cid and "You have" or getPlayerSex(thing.uid) == 0 and "She has" or "He has") .. " " .. getPlayerFrags(getCreatureName(thing.uid)) .. " frags.")
end
return true
end