• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Frag Remover - Top Fragers = Wiele Ots

Status
Not open for further replies.

Zool

Banned User
Joined
Jun 9, 2009
Messages
742
Reaction score
5
Location
Poland/St Wola
Witam na Kosmosie jak i na wielu innych jest blad z Frag Removerem mianowicie :
Po jego uzyciu znikaja wszystkie fragi.

Jak zrobic zeby znikaly Fragi tylko w grze np (rs) i fragi schodzily do 0

Ale byly ciagle liczone w Top Fragers ??

Kosmos Ots 8.54 - Top Fragers

Rs remover skrypt :
Code:
local config =
{
    item = 9999,  -- 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 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_RED)  
    else
        doPlayerSendCancel(cid, "You dot have enough level")
    end
    return TRUE
end
 
ma byc tak :
`unjustified` = 0 AND `k`.`final_hit` = 1


? i to bedzie tez zaliczac tym co zabili poprostu pk bez fraga ??
 
Status
Not open for further replies.
Back
Top