Zool
Banned User
Code:
local config =
{
item = 9999, -- WPISZ ID ITEMA KTÓRY MA USUWAĆ FRAGI PRAWYM KLIKNIĘCIEM
level = 1, -- Wpisz minimalny level do uzycia
count = 0
}
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= config.level then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Twoje fragi zostaly usuniete.")
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)
doPlayerSetSkullEnd(cid, 0, SKULL_BLACK)
else
doPlayerSendCancel(cid, "Nie masz odpowiedniego poziomu")
end
return TRUE
end
How edit that to dont remover Skulls ? Remove Only Frags
Or second idea to can use only in Pz Zone ?
Ofc rep++