Ae galera eu tava fuçando novamente a otland e achei essa talkaction!!, bom ela serve para deleta os players, ou seja, se você ta cansado de todas vez que tiver de deleta um player abrir sua datebase, basta usa essa talkaction!! segue o tutor:
Data/Talakctions/Scripts/ Copie e abra qualquer arquivo.lua e renomeie para Deletplayer.lua abra e cole isso dentro:
function onSay(cid, words, param, channel)
local p = string.explode(param, ',')
if(param == "") then
doPlayerSendCancel(cid, "Command requires param.")
return true
end
if(words == "/del") then
if(db.getResult("DELETE FROM `X`.`players` WHERE `players`.`name` = " .. db.escapeString(p[1]) .. ";"):getID() == -1) then
return doPlayerSendCancel(cid, "You Have Deleted [" .. p[1] .. "] .")
end
return db.executeQuery("UPDATE `players`" .. p[1] .. "' WHERE players = '" .. p[1] .. "';") and doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have Deleted " .. p[1] .. "'s name")
end
end
E Em Talkactions.xml Ponha:
<talkaction log="yes" words="/del" access="5" event="script" value="Deletplayer.lua"/>
Para Deleta O Devido Player Basta Falar: /del nome do player
Creditos: Blorin Mage (Otland)
Overllord Por Trazer