What's new

Problem ze SkullRemove

Status
Not open for further replies.

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

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~~
 

Xayan

Senior User
Joined
Jul 4, 2009
Messages
2,608
Reaction score
390
Age
28
Odp: Problem ze SkullRemove

U?ywanie oczu nie boli. _/

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
 

Aratos

Active User
Joined
Jan 9, 2010
Messages
97
Reaction score
7
Odp: Problem ze SkullRemove

Ale Chodzi mi to Np mam Rs'a od 10 Frag?w? nie?! i np mam 10Frag?w i Rs'a To jak Uzyje Rs'a nie bd ale fragi bd i jak zas Kogos zabije to bd 1 Frag i Zas rs? i tak ciagle uzywac!
 

andy1995

Senior User
Joined
Apr 12, 2009
Messages
602
Reaction score
100
Odp: Problem ze SkullRemove

Skrypt do removera miales dobry. Poprostu w top fragers, most powerfull guilds usuwasz cos takiego
PHP:
`unjustified` = 1
 

Aratos

Active User
Joined
Jan 9, 2010
Messages
97
Reaction score
7
Odp: Problem ze SkullRemove

@Andy1995

Code:
Skrypt do removera miales dobry. Poprostu w top fragers, most powerfull guilds usuwasz cos takiego
Kod PHP:
`unjustified` = 1


Andy Dzi?ki Za Pomoc Tylko Nie mam Tego Usuwac Tylko Zmienic z 1 Na 0
Dzieki Leci Rep~~

Notka moderatorska:
Temat zamykam. andy1995 otrzymuje 1 punkt do konkursu OT Expert.
 
Last edited by a moderator:
Status
Not open for further replies.
Top