This doesnt working.
I wanna skull only for decoration
I wanna skull only for decoration
Code:
function onLogin(cid)
local frags = getPlayerPoints(cid)
if frags >= 150 then -- If player has 150 or more frags then he will gain a WS.
doCreatureSetSkullType(cid, SKULL_WHITE)
elseif frags >= 300 then --Same but with 250 frags and a Yellow skull.
doCreatureSetSkullType(cid, SKULL_YELLOW)
elseif frags >= 600 then -- Yadayadayada 350 frags = Green Skull
doCreatureSetSkullType(cid, SKULL_GREEN)
elseif frags >= 1200 then -- 450 frags = RS
doCreatureSetSkullType(cid, SKULL_RED)
elseif frags >= 2400 then -- Black Skull = 800 frags or more.
doCreatureSetSkullType(cid, SKULL_BLACK)
end
return true
end