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

Type of Banishment

Sherlok

Active Member
Joined
Aug 29, 2008
Messages
2,116
Reaction score
44
Location
Poland, Wrocław.
Hiho.
I want to change type of banishment, from account to player banishment. Can You tell me how to do that?

doAddAccountBanishment(getPlayerAccountId(target), target, os.time() + 10 * 3600, 12, 2, 'bb nabzior', 0)

I've to change just doAddAccountBanishment to doAddPlayerBanishment and getPlayerAccountId(target) to getPlayerName(target) ?


Thanks, rep++
Sherlok
 
Last edited:
you must remake ban system for banning players, in TFS 0.4 i don't see function "doPlayerAddBanishment". ;D
Code:
	//doAddPlayerBanishment(name/guid[, type[, length[, reason[, action[, comment[, admin[, statement]]]]]]])
 
Code:
	//doAddPlayerBanishment(name/guid[, type[, length[, reason[, action[, comment[, admin[, statement]]]]]]])

i'm not donator, don't have sources, only found file: LUA_FUNCTIONS...

PHP:
doAddAccountBanishment(getPlayerGUID(target), 1, os.time() + 10 * 3600, 12, 2, 'bb nabzior', 0)
 
doAddPlayerBanishment(getPlayerName(target), 2, os.time() + 10 * 3600, 12, 2, 'Banned by ANTI-BOT', 0)
It's adding player namelock :/

doAddPlayerBanishment(getPlayerName(target), 3, os.time() + 10 * 3600, 12, 2, 'Banned by ANTI-BOT', 0)
It's only kick player..

Code:
BAN_NONE = 0
BAN_IP = 1
BAN_PLAYER = 2
BAN_ACCOUNT = 3
BAN_NOTATION = 4
BAN_STATEMENT = 5

PLAYERBAN_NONE = 0
PLAYERBAN_REPORT = 1
PLAYERBAN_LOCK = 2
PLAYERBAN_BANISHMENT = 3

How to fix it to ban only player, not account?
 
Back
Top