Hello,someone can fix this script,this don't working:
Regards,
Stewie.
LUA:
function onLogin(cid)
if isPlayer(target) then
local frags = getPlayerPoints(cid)
if(frags >= 10) then
doCreatureSetSkullType(cid, SKULL_YELLOW)
elseif(frags >= 30) then
doCreatureSetSkullType(cid, SKULL_GREEN)
elseif(frags >= 80) then
doCreatureSetSkullType(cid, SKULL_WHITE)
elseif(frags >= 150) then
doCreatureSetSkullType(cid, SKULL_RED)
elseif(frags >= 300) then
doCreatureSetSkullType(cid, SKULL_BLACK)
end
end
return true
end
Regards,
Stewie.