Aratos
Active User
- Joined
- Jan 9, 2010
- Messages
- 97
- Reaction score
- 7
Ot?? Posiadam SkullRemove Kt?ry Usuwa Fragi,Rs'a i Bs
i chce ?eby nie usuwa? Frag?w Np z top Fragers? Lub Most powerfull guilds
Wie kto? Mo?e jak to zrobi???
A to Skrypt na SkullRemove by Gelio
Oczewi?cie Za Pomoc Leci Rep~~
i chce ?eby nie usuwa? Frag?w Np z top Fragers? Lub Most powerfull guilds
Wie kto? Mo?e jak to zrobi???
A to Skrypt na SkullRemove by Gelio
Code:
Skull remove by Gelio
-- With little Leon help (frags remove)
function onUse(cid, item, frompos, item2, topos)
local zabieraLadunki = "tak" -- Czy zabiera ladunki runy
local usuwaRedSkulla = "tak" -- Czy usuwa red skulla
if((getPlayerSkullType(cid) ~= SKULL_RED or usuwaRedSkulla == "tak") or getPlayerSkullType(cid) ~= SKULL_GREEN) then
doCreatureSetSkullType(cid, SKULL_NONE)
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"You don't have any skull now.")
doSendMagicEffect(getPlayerPosition(cid),CONST_ME_MAGIC_RED)
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")") -- Usuwanie fragow. Usuniesz ta linijk? to nie b?dzie bra? frag?w
else
doPlayerSendCancel(cid,"You can't remove red or green skull.")
end
if(zabieraLadunki == "tak") then
if(item.type > 1) then
doChangeTypeItem(item.uid, item.type-1)
else
doRemoveItem(item.uid,1)
end
end
end
Oczewi?cie Za Pomoc Leci Rep~~