\tlbb\Public\Data\Script\scene.lua 文件中x888888_OnScenePlayerFirstLogin 函数,是角色第一次
登陆游戏会执行的,有的玩家会使用封包工具去卡彩色名字,我们就不喜欢这些玩家装逼啦!
x888888_OnScenePlayerFirstLogin函数下面加入检测代码:
[ttreply]
local PlayerName = GetName(sceneId,selfId)
local PlayerSex = GetSex(sceneId,selfId)
–第一次登陆时 检查卡彩名 直接干死
if strfind(PlayerName,”#”) ~=nil then
SetLevel( sceneId, selfId, 0)
NewWorld(sceneId,selfId,77,17,56)
BroadMsgByChatPipe( sceneId, selfId, “#cFF0000防挂系统:#Y玩家#G”..GetName(sceneId, selfId
)..”#Y尝试卡游戏彩名,已被系统拦截,请玩家们尽快通知GM!”, 4 )
end
THE END
暂无评论内容