Por lua o máximo que da pra fazer é.
local xml = io.open(getDataDir().."monster/monsters.xml", "r")
local monsters = false
if xml then
local text = xml:read("*all")
xml:close()
monsters = {}
for monstername in text:gmatch('name="(.-)"') do
table.insert(monsters, monstername)
end
end
function onLogin(cid)
if monsters and isInArray(monsters, getCreatureName(cid)) then
doPlayerSendTextMessage(cid, 27, "Jogadores com nome de monstro são proíbidos.")
addEvent(doRemoveCreature, 2000, cid)
end
return true
end







info
Grupo: Artesão
Registrado: 19/10/12
Posts: 104
Reputação: -1
Galera eu queria um favorzinho de vocês editar este script colocar uma mensagem PopupFYI ou algo assim , bom o script é um sistema que não permiti o player com nome de bixo logar no serv ficar so carregando é nada , confere a imagem abaixo :
Só que invez de ficar esse nome na hora de o script kikar ele , "connecting to the game world. Please Waith" fica-se Exemplo "Jogadores Com Nome De Monstro Nao Consiguirar Logar " só um exemplo do rep + pra quem ajudar !
Script :
local xml = io.open(getDataDir().."monster/monsters.xml", "r")
local monsters = false
if xml then
local text = xml:read("*all")
xml:close()
monsters = {}
for monstername in text:gmatch('name="(.-)"') do
table.insert(monsters, monstername)
end
end
function onLogin(cid)
if monsters and isInArray(monsters, getCreatureName(cid)) then
return false
end
return true
end
Valeu Galera!
@up
@up
Editado Junho 17 por josedb9