di12345di
New Member
- Joined
- Aug 1, 2012
- Messages
- 105
- Reaction score
- 0
someone put only removes red / black please? and not removing frags.
Code:
-- Scripted by Leon Zawodowiec --
function onUse(cid, item, frompos, item2, topos)
local playerskull = getCreatureSkullType(cid)
local skulls = {
SKULL_NONE,
SKULL_YELLOW,
SKULL_GREEN,
SKULL_WHITE
}
if isInArray(skulls, playerskull) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce prescisa ter RED/BLACK para usar o item !")
return 0
else
doCreatureSetSkullType(cid, skulls[1])
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Seu RED/BLACK skull foi removido !")
end
return true
end