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

help with frag rune

grande

Banned User
Joined
Jun 17, 2010
Messages
3
Reaction score
0
hello,
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
 
Delete this line?
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ");");
 
Code:
local frag = getPlayerSkullType (cid)

function onUse (cid, item, fromPosition, itemEx, toPosition)
if frag == 3 or frag == 4 then
doCreatureSetSkullType(cid, 0)
doRemoveItem (item.uid, 1)
end
return true
end

try this..
 
Back
Top