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
in talkactions/talkactions.xml
enjoy .
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: