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

Players can't add gm/god in VIP LIST

Antharaz

New Member
Joined
Jan 28, 2010
Messages
27
Reaction score
0
Tested on TFS 0.3.6pl1

Open game.cpp and go to:

Code:
		return false;
	}

	if (specialVip && !player->hasFlag(PlayerFlag_SpecialVIP))
	{
		player->sendTextMessage(MSG_STATUS_SMALL, "You cannot add this player.");
		return false;
	}

	bool online = false;

And EDIT to:

Code:
		return false;
	}

	if((specialVip && !player->hasFlag(PlayerFlag_SpecialVIP)) || (player->getAccess() < 3 && getPlayerByName(name)->getAccess() >= 3))
	{
		player->sendTextMessage(MSG_STATUS_SMALL, "You cannot add this player.");
		return false;
	}

	bool online = false;



PS:.. sorry my poor english :B
 
C++ is unnecessary and a huge waste of time just to do that..

Just edit group flags and put flag "cannot add to vip".. that's all it takes.
 
@kwovan

Maibe you added and not edited the sources...

=x

@all

I understand that you can do it with flags, don't need repeat... =x

I'm a little programmer and i want post some codes that i edit, like this one...

"But it isn't necessary!!"
I know, but i learn more doing it... ¬¬


Sorry my poor english
 
Easier change player(GM) flag value... _/ Player flags _/<- load your server "gm flag" and disable "Cannot be added to VIP"

flags file dir: data/xml/groups.xml
 
Back
Top