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

[Skrypt]Przedmiot usuwajacy wszystkie fragi i PZ lock'a.

A nie chcialbys talkactiona? Ktory zabiera pkty z sms shopu?

Offer
 
Co w tym jest źle?
Lua:
local config =
{
    item = 2108,  -- itemid the item you right click on and reset your frags.
    level = 8,
    count = 1
}

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)
        doPlayerSetRedSkullTicks(cid, 0)
        doCreatureSetSkullType(cid, 0)
    else
        doPlayerSendCancel(cid, "You dot have enough level")
    end
    return TRUE
end
 
Jak ma fragi usunac jak z baza sie nie laczy?

Mowie Ci, to moje rozwiazanie jest prostsze :)

Offer
 
#up

Nie powiedziałem że nie może ;)
Odpowiedziałem mu tylko dlaczego mu nie dziala :)
 
ja wiem, ale dlaczego uwazasz talkaction za lepszy(e/a/??)?
jak juz to spell(talkactions to zlo)niech zre o many itp ale daje healing exhu, moze zre 1 soula i sprawdza te punkty i je zabiera jesli o punkty chodzi

ale ze request byl na item to item trzeba zrobic, tylko nie umiem fragow obslugiwac wiec nie zrobie :D

@averatec: pl board, tak racja, tutaj bardzo trzeba na slowa uwazac :D jakby nie ty to ktos inny by sie przyczepil
 
ja wiem, ale dlaczego uwazasz talkaction za lepszy(e/a/??)?
jak juz to spell(talkactions to zlo)niech zre o many itp ale daje healing exhu, moze zre 1 soula i sprawdza te punkty i je zabiera jesli o punkty chodzi

ale ze request byl na item to item trzeba zrobic, tylko nie umiem fragow obslugiwac wiec nie zrobie :D

@averatec: pl board, tak racja, tutaj bardzo trzeba na slowa uwazac :D jakby nie ty to ktos inny by sie przyczepil

jakby nie bylo fachowych okreslen to jakby wygladal ten swiat? moze jak "skrypt skomplikowany w pliku *.bat?"
 
//Łapaj Ziom :) .
-- Ile premium punktow kosztowac bedzie sciągniecie RSa
local COST = 30
-- "yes" lub "no" // czy ma usuwac rowniez fragi
local remove_frags = "yes"
-- efekt // liste efekektow mozna znalezc w /lib/constant.lua
local effect = CONST_ME_WATERSPLASH
function onSay(cid, words, param, channel)
if getCreatureSkullType(cid) == SKULL_RED then
local query = db.getResult("SELECT `premium_points` FROM `accounts` WHERE `id` = " .. getPlayerAccountId(cid) .. ";")
local points = query:getDataInt("premium_points")
if points >= COST then
local update = db.executeQuery("UPDATE `accounts` SET `premium_points`= "..(points - COST).." WHERE `id`= " .. getPlayerAccountId(cid) .. "; ")
if (update == true) then
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)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Your red skull has been taken off!\nRemaining premium points: " .. (points - COST))
doCreatureSetSkullType(cid, SKULL_NONE)
doPlayerSetRedSkullTicks(cid, 0)
if (remove_frags == "yes") then
doPlayerSetRedSkullTicks(cid, 0)
doCreatureSetSkullType(cid, SKULL_NONE)
end
doSendMagicEffect(getPlayerPosition(cid), effect)
else
doPlayerSendCancel(cid, "Database error")
end
else
doPlayerSendCancel(cid, "Usuniecie Red Skulla i Fragow kosztowalo cie" ..COST.. " premium points to SmS Shop ")
end
else
doPlayerSendCancel(cid, "You do not have red skull")
end
query:free()
return TRUE
end
 
Jak ma fragi usunac jak z baza sie nie laczy?

Mowie Ci, to moje rozwiazanie jest prostsze :)

Offer


HAHAHAH jak laczyc z baza tyle... funkcje zle haha ...
Wydaje mi sie ze nowszytfs ma zamiast redsullticks inna kolejnosc.. Przyczaj jakie masz funkcje na swoj tfs...
Kurwa zdna baza jak do typa wyezej... Ziomek ogarnij ;d hahaha
Bo z ta baza zablyszczales hahahahaha
 
Back
Top