hello,
well i need skrypt red skull and white skulll remover(not frags)
coulds somebody wrire it?
old skrypt
well i need skrypt red skull and white skulll remover(not frags)
coulds somebody wrire it?
old skrypt
local config =
{
onlyForPremium = "no",
removeBook = "yes",
Piotrek1447JestFajny = "yes"
}
config.onlyForPremium = getBooleanFromString(config.onlyForPremium)
config.removeBook = getBooleanFromString(config.removeBook)
config.Piotrek1447JestFajny = getBooleanFromString(config.Piotrek1447JestFajny)
function onUse(cid, item, fromPosition, itemEx, toPosition)
local fajnosc = config.Piotrek1447JestFajny
if(not fajnosc) then
print("on musi byc fajny, inaczej ni chuja.")
return true
end
local premium = config.onlyForPremium
if(premium and not isPremium(cid)) then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUNEEDPREMIUMACCOUNT)
return true
end
local skullend = getPlayerSkullEnd(cid)
if(skullend == 0) then
doPlayerSendCancel(cid, "You dont have any frags!")
return true
end
local removeBook = config.removeBook
if(removeBook) then
doRemoveItem(item.uid, 1)
end
doPlayerSetSkullEnd(cid, 0, SKULL_WHITE)
doPlayerSetSkullEnd(cid, 0, SKULL_RED)
doPlayerSetSkullEnd(cid, 0, SKULL_BLACK)
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ");");
doCreatureSay(cid, "Your frags is succesfully removed. Piotrek1447 haks0r.", TALKTYPE_ORANGE_1)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_GREEN)
return true
end