function onLogin(cid)
local frags = math.max(0, getPlayerStorageValue(cid, 20233))
local frags = math.max(0, getPlayerStorageValue(cid, 20233))
if frags >= 200 and frags < 300 then
doCreatureSetSkullType(cid, SKULL_YELLOW)
elseif frags >= 301 and frags < 450 then
doCreatureSetSkullType(cid, SKULL_GREEN)
elseif frags >= 451 and frags < 650 then
doCreatureSetSkullType(cid, SKULL_WHITE)
elseif frags >= 651 and frags < 1050 then
doCreatureSetSkullType(cid, SKULL_RED)
elseif frags > 1051 then
doCreatureSetSkullType(cid, SKULL_BLACK)
end
return true
end