hello im have this script:
Why no work? no erros in console
meybe here error "local frags = player:getStorageValue(27862)"
function onLogin(player)
local frags = player:getStorageValue(27862)
if frags >= 2 and frags < 3 then
player:setSkull(SKULL_YELLOW)
elseif frags >= 4 and frags < 5 then
player:setSkull(SKULL_GREEN)
elseif frags >= 6 and frags < 7 then
player:setSkull(SKULL_WHITE)
elseif frags >= 8 and frags < 9 then
player:setSkull(SKULL_RED)
elseif frags > 10 then
player:setSkull(SKULL_BLACK)
end
return true
end
Why no work? no erros in console
meybe here error "local frags = player:getStorageValue(27862)"
function onLogin(player)
local frags = player:getStorageValue(27862)
if frags >= 2 and frags < 3 then
player:setSkull(SKULL_YELLOW)
elseif frags >= 4 and frags < 5 then
player:setSkull(SKULL_GREEN)
elseif frags >= 6 and frags < 7 then
player:setSkull(SKULL_WHITE)
elseif frags >= 8 and frags < 9 then
player:setSkull(SKULL_RED)
elseif frags > 10 then
player:setSkull(SKULL_BLACK)
end
return true
end