War-Ots
New Member
- Joined
- Feb 17, 2016
- Messages
- 29
- Reaction score
- 2
Hello on more time
I know alot of people have asked things like that and I have already read their post and cound not find a solution for me so here it is:
in login.lua on function onLogin(player) I tried to add something like this to test if the skulls were setted correctly, but when I log in nothing happens
(added the prints to see if frags were counted correctly and yes they were)
Then I tried to do it on onKill function and I did something like this:
Every prints were donne correctly but nothing happens, I am afraid that function setSkull is not working or I am not using it correctly.
Any help? Thanks!
I know alot of people have asked things like that and I have already read their post and cound not find a solution for me so here it is:
in login.lua on function onLogin(player) I tried to add something like this to test if the skulls were setted correctly, but when I log in nothing happens
Code:
local frags = player:getStorageValue(fragStor)
print("say elo"..frags.."in if")
if frags >= 3 and frags < 4 then
player:setSkull(SKULL_YELLOW)
elseif frags >= 5 and frags < 6 then
player:setSkull(SKULL_GREEN)
elseif frags >= 7 and frags < 8 then
player:setSkull(SKULL_WHITE)
elseif frags >= 9 and frags < 10 then
player:setSkull(SKULL_RED)
elseif frags > 11 then
player:setSkull(SKULL_BLACK)
end
Then I tried to do it on onKill function and I did something like this:
Code:
.
more code
.
local frags = player:getStorageValue(fragStor)
print("see frags"..frags.."end print frags)
if frags <100 then
print("entered inside of if")
player:setSkull(SKULL_GREEN)
print("leaving if)
end
.
.
more code
Every prints were donne correctly but nothing happens, I am afraid that function setSkull is not working or I am not using it correctly.
Any help? Thanks!