C++ No losing skull when lose the PZ (Skull System)

Ghazer

New 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:
OP
Ghazer

Ghazer

New Member
Joined
Mar 13, 2009
Messages
350
Reaction score
6
bump help please

- - - Updated - - -

ASDASDAS

- - - Updated - - -

Help please URGENT!
 
OP
Ghazer

Ghazer

New Member
Joined
Mar 13, 2009
Messages
350
Reaction score
6
Its possible? Idea?
 

gigastar

Excellent OT User
Joined
Jan 25, 2009
Messages
251
Reaction score
14
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.
 
OP
Ghazer

Ghazer

New Member
Joined
Mar 13, 2009
Messages
350
Reaction score
6
@kimokimo, that works fine

Thank you :)
 
Top