• 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++ No losing skull when lose the PZ (Skull System)

Ghazer

Member
Joined
Mar 13, 2009
Messages
350
Reaction score
6
Hello!

I have this problem with Skull System... If player have yellow, green or white skull when player lose PZ also losing skull...
How I can do to not loose? Like red skull or black skull... when you have red or black skull never loose skull. Help please!

I think to do need edit player.cpp
here my player.cpp:
Lua:
 player.cpp - Pastebin.com[/url]
 
Last edited:
Lua:
Skulls_t Player::getSkull() const
{
        if(hasFlag(PlayerFlag_NotGainInFight) || hasCustomFlag(PlayerCustomFlag_NotGainSkull))
                return SKULL_NONE;
 
        return skull;
}

I think the problem is here,,, you need
Code:
Skulls_t Player::getSkull() const
{
        if(hasFlag(PlayerFlag_NotGainInFight) || has[COLOR="#FF0000"]Custom[/COLOR]Flag(PlayerCustomFlag_[COLOR="#FF0000"]put flag for no skull[/COLOR]))
                return SKULL_NONE;
 
        return skull;
}


you might need to take the red custom out.
 
@kimokimo, that works fine
ud0KX.png

Thank you :)
 
Back
Top