Pergunta : Eu kero colocar outra coisa sem ser [VIP] tem jeito ?
Resposta: Tem Sim. No meu Caso meu Server é [P.A] "Premium Account" é so seguir os codes abaixo :
function pegarNome(name)
return string.sub(name, 7)
end
function onLogin(cid)
local name = getCreatureName(cid)
local nome = getPlayerGUID(cid)
if isVip(cid) then
if string.sub(name, 1,6) == "[P.A] " then
return true
else
db.executeQuery("UPDATE `players` SET `name` = '[P.A] "..name.."' WHERE `id`= " .. nome .. ";")
doPlayerSendTextMessage(cid,19," 10 Segundos para mudança de Nome [P.A].")
addEvent(doRemoveCreature,10000,cid)
end
else
if string.sub(name, 1,6) == "[P.A] " then
db.executeQuery("UPDATE `players` SET `name` = '"..pegarNome(getCreatureName(cid)).."' WHERE `id`= " .. nome .. ";")
doPlayerSendTextMessage(cid,19,"10 segundos para mudança de nome [P.A].")
addEvent(doRemoveCreature,10000,cid)
end
end
return true
end
Troque todos [VIP] pelo seu que você quer [XXX].
Espero ter Ajudado-ai .
Create By : [Administrador] Azeroth Server < --- Mapa Excluivo 100 % em 2013 --- >
+Rep Ai Plis