Lakh
Banned User
Hello, I made a somewhat useful script I guess, so here it is.. Basically, if the player has a red skull, it will remove it, and remove 25cc.. So, enjoy I guess lol
Action Version:
Talkaction Version:
Action Version:
LUA:
local skullNames = {"Yellow", "Green", "White", "Red", "Black"}
local creatureSkull = getCreatureSkullType(cid)
function onUse(cid, item, fromPosition, itemEx, toPosition)
if creatureSkull ~= SKULL_RED then
if doPlayerRemoveMoney(cid, 250000) then
doPlayerSendTextMessage(cid, "Your Red Skull has been removed..")
doCreatureSetSkullType(cid, SKULL_NONE)
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
else
doPlayerSendTextMessage(cid, "Good Boy. You do not have a red skull..")
end
return true
end
Talkaction Version:
LUA:
local skullNames = {"Yellow", "Green", "White", "Red", "Black"}
local creatureSkull = getCreatureSkullType(cid)
function onSay(cid, words, param, channel)
if creatureSkull ~= SKULL_RED then
if doPlayerRemoveMoney(cid, 250000) then
doPlayerSendTextMessage(cid, "Your Red Skull has been removed..")
doCreatureSetSkullType(cid, SKULL_NONE)
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
else
doPlayerSendTextMessage(cid, "Good Boy. You do not have a red skull..")
end
return true
end
Last edited: