Olá,
No meu Otserver, possuo um script que, quando o player digita !removeskull, ele tira a skull, mas só que não reseta os frags. assim, quando o player matar outra pessoa, ele vai pegar skull denovo
Gostaria que meu script resetasse os frags também, por isso, segue abaixo para vocês analisarem e tentarem colocar para resetar os frags !
--- skull remover by kakilo - quinto script
function onSay(cid, words, param, channel)
if (getCreatureSkullType(cid) == SKULL_BLACK) then
if doPlayerRemoveMoney(cid, 20000000) then
doCreatureSetSkullType(cid, SKULL_NONE)
doPlayerSendTextMessage(cid, 22, "Black Skull Retirada.")
else
doPlayerSendTextMessage(cid, 22, "Voce precisa de 20kk para remover a sua black skull")
end
end
if (getCreatureSkullType(cid) == SKULL_RED) then
if doPlayerRemoveMoney(cid, 20000000) then
doCreatureSetSkullType(cid, SKULL_NONE)
doPlayerSendTextMessage(cid, 22, "Red Skull Retirada.")
else
doPlayerSendTextMessage(cid, 22, "Voce precisa de 20kk para remover a sua red skull")
end
end
if (getCreatureSkullType(cid) == SKULL_NONE) then
doPlayerSendTextMessage(cid, 22, "Sua Skull foi retirada com Sucesso!")
end
return TRUE
end