• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TalkAction Now Script removeskull

abofoulla

New Member
Joined
Apr 24, 2017
Messages
44
Solutions
1
Reaction score
2
hello
It worked 100%

First create something like this

1k to remove your black and red skull.

in talkactions/scripts/skull.lua

Lua:
--- skull remover by abofoulla - script

function onSay(cid, words, param, channel)

if (getCreatureSkullType(cid) == SKULL_BLACK) then
if doPlayerRemoveMoney(cid, 1000000) then
doCreatureSetSkullType(cid, SKULL_NONE)
doPlayerSendTextMessage(cid, 22, "Black Skull Retirada.")
else
doPlayerSendTextMessage(cid, 22, "You need 1k to remove your black skull")
end
end

if (getCreatureSkullType(cid) == SKULL_RED) then
if doPlayerRemoveMoney(cid, 1000000) then
doCreatureSetSkullType(cid, SKULL_NONE)
doPlayerSendTextMessage(cid, 22, "Red Skull Retirada.")
else
doPlayerSendTextMessage(cid, 22, "You need 1k to remove your red skull")
end
end

if (getCreatureSkullType(cid) == SKULL_NONE) then
doPlayerSendTextMessage(cid, 22, "Your Skull was successfully withdrawn!")
end
return TRUE
end

in talkactions/talkactions.xml

Code:
 <talkaction words="!removeskull" event="script" value="skull.lua"/>

enjoy .
 
Last edited:
Back
Top