function onLogin(cid)
registerCreatureEvent(cid, "FragsL")
end
function onLook(cid, thing, position, lookDistance)
if getCreatureName(thing.uid) == getCreatureName(cid) then
doPlayerSetSpecialDescription(thing.uid, "You have ".. getPlayerFrags(cid) .." frags.")
end
return true
end
<event type="login" name="fragsL_register" event="script" value="seefrags.lua"/>
<event type="look" name="FragsL" event="script" value="seefrags.lua"/>
if getCreatureName(thing.uid) == getCreatureName(cid) then
function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) then
return doPlayerSetSpecialDescription(thing.uid, ". \n Frags: "..(getPlayerStorageValue(thing.uid, 20233) < 1 and 0 or getPlayerStorageValue(thing.uid, 20233)).."")
end
end
<event type="look" name="lookFrags" event="script" value="lookfrags.lua"/>
registerCreatureEvent(cid, "lookFrags")
if getCreatureName(thing.uid) == getCreatureName(cid) then
if getCreatureName(thing.uid) == getCreatureName(cid) then