- Dołączył
- Lipiec 3, 2009
- Posty
- 107
- Liczba reakcji
- 2
- Wiek
- 46
Bs/Rs/Ws/ Frag Remover:
utw?rz plik " skull.lua " i wklej do niego:
Nast?pnie w data/actions/actions.xml wklej :
Ciesz si? Frag Removerem
utw?rz plik " skull.lua " i wklej do niego:
Kod:
local config =
{
item = 10142, -- WPISZ ID ITEMA KT?RY MA USUWA? FRAGI PRAWYM 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 and skull 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_BLACK)
doPlayerSetSkullEnd(cid, 0, SKULL_RED)
doPlayerSetSkullEnd(cid, 0, SKULL_WHITE)
else
doPlayerSendCancel(cid, "You dot have enough level")
end
return TRUE
end
Kod:
<action itemid="10142" event="script" value="skull.lua"/>