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

Lua Players creating Adm characters!

luangop

New Member
Joined
May 23, 2009
Messages
4
Reaction score
2
Hello! I have a big problem on my server, have people creating character with Adm name, like 'Adm Luan' and stealing players impersonating staff.
When they do this, coz have Adm in the nick, I can not even give ban immediately, i need to change his nickname with sqlstudio, to kick, expect it to log in and ban.
Is there any way to prevent characters with Adm in the nick to be created?
TFS 0.3.6
I dont have the sourcers, then would have to be in .lua
I'm using SQL without possibility of using MYSQL to .php
 
I solved it for myself :P
login.lua
if (string.find(tostring(getCreatureName(cid)),"Admin")) or (string.find(tostring(getCreatureName(cid)),"Staff")) or (string.find(tostring(getCreatureName(cid)),"Adm")) or (string.find(tostring(getCreatureName(cid)),"ADM")) and getPlayerGroupId(cid) == 1 then
doRemoveCreature(cid)
return true
end
 
Back
Top