• 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

narko

vertrauenswürdig ~
Joined
Oct 19, 2008
Messages
1,317
Solutions
2
Reaction score
131
Location
Unknown
I looking for a Skull System i need a Source code for this system because in LUA= LAG, ERRORS. I need in source code Thanks!


What is Skull System?

Example:

You kill other GUY 10 times. and Automatic you gets a yellow skull
You kill other GUY 20 times. and Automatic you gets a white skull
You kill other GUY 50 times. and Automatic you gets a red skull

i have code for dont gets yellown and white skull when killing or pz i need only these code!!!
 
Last edited:
doubt, is your server set 'hardcore' ?
i'm tryin to do the same that you want on my server but skull doesn't appear.
 
doubt, is your server set 'hardcore' ?
i'm tryin to do the same that you want on my server but skull doesn't appear.
player.cpp remove
Code:
void Player::setSkullEnd(time_t _time, bool login, Skulls_t _skull)
{
	if([B][COLOR="red"]g_game.getWorldType() != WORLDTYPE_OPEN
		|| [/COLOR][/B]hasFlag(PlayerFlag_NotGainInFight) ||
		hasCustomFlag(PlayerCustomFlag_NotGainSkull))
		return;
Code:
bool Player::addUnjustifiedKill(const Player* attacked, bool countNow)
{
	if(!g_config.getBool(ConfigManager::USE_FRAG_HANDLER) || hasFlag(
		PlayerFlag_NotGainInFight) || [B][COLOR="red"]g_game.getWorldType() != WORLDTYPE_OPEN
		|| [/COLOR][/B]hasCustomFlag(PlayerCustomFlag_NotGainUnjustified) || hasCustomFlag(
		PlayerCustomFlag_NotGainSkull) || attacked == this)
		return false;
the 2nd one only if you want unjustified kills
 
U have any idea how to make the skulls for highscores?
For example :

#1 lvl = Black skull
#2 lvl = red skull
#3 lvl = white skull
#4 lvl = green skyll
#5 lvl = yellow skull
 
Back
Top