• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ Skull System TFS 1.2 With PVP ENFORCED WORLD

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
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
i hope someone do it because a day will come and we need it
thanks
 
Back
Top