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

Windows Frag removing items

affe963

Banned User
Joined
Apr 11, 2009
Messages
68
Reaction score
0
Can anyone please help me fix a item that removes all frags when right click on it or help me fix fragsremover on doante please :)
 
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.KLIKNIĘCIEM
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
 
Back
Top