• 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!

Compiling c++ little problem

Majster12

Member
Joined
Feb 20, 2009
Messages
134
Solutions
1
Reaction score
16
Hello.
In player c++ i want to make system that you don't receive frag for 8 lvl but 8 lvl for killing 8 lvl receive frag
i have something like this

Code:
bool Player::addUnjustifiedKill(const Player* attacked, bool countNow)
{
    if(attacked->getLevel() == 8)
        return false;
}
 
Code:
bool Player::addUnjustifiedKill(const Player* attacked, bool countNow)
{
if(getLevel() != 8 attacked->getLevel() == 8)
return false;
}


I didnt tested, im not a C++ Coder, but thats how it should look like in someway
 
Last edited:
Back
Top Bottom