MaR0
Banned User
- Joined
- Apr 16, 2018
- Messages
- 272
- Solutions
- 3
- Reaction score
- 29
Hello i want to edit my sources at pvp enforced world to enable that script because it's not working at pvp enforced world
i hope someone do it because a day will come and we need it
thanks
Lua:
function onKill(creature, target)
local player = Player(creature)
local frags = player:getStorageValue(STORAGE_PVPFRAGS)
if target:isPlayer() then
player:setStorageValue(STORAGE_PVPFRAGS, frags+1)
if(frags < 10) then
player:setSkull(SKULL_GREEN)
elseif(frags < 20) then
player:setSkull(SKULL_WHITE)
elseif(frags < 30) then
player:setSkull(SKULL_RED)
elseif(frags > 39) then
player:setSkull(SKULL_BLACK)
end
end
return true
end
thanks