• 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!

Rs removing item

Try this
/data/actions/actions.xml
Code:
action itemid="itemid" event="script" value="tools/frag.lua"/>

data/actions/scrtipts/frag.lua
Lua:
local config =
{
item = XXXX, -- id of item
level = 1,
count = 0
}
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= config.level then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your frags has been removed.")
doRemoveItem(item.uid)
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
doPlayerSetSkullEnd(cid, 0, SKULL_RED)
else
doPlayerSendCancel(cid, "You dot have enough level")
end
return TRUE
end

Tell me if it's not working.
 
Back
Top