Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
--by Keraxel // for otland.net.pl
function onKill(cid, target)
if isPlayer(target) == TRUE then
local result = db.getResult("SELECT * FROM `bounty_hunters` WHERE `sp_id` = ".. getPlayerGUID(target) .." AND `killed` = 0;")
local prize = 0
local bid = 0
if result:getID() ~= LUA_ERROR then
prize = tonumber(result:getDataInt("prize"))
bid = tonumber(result:getDataInt("id"))
result:free()
end
if bid ~= 0 and prize ~= 0 and not(getTileInfo(getCreaturePosition(cid)).pvp) then
local k_id = getPlayerGUID(cid)
db.executeQuery("UPDATE `bounty_hunters` SET `killed` = 1, `k_id`=".. k_id ..", `kill_time` = ".. os.time() .." WHERE `id` = ".. bid ..";")
doPlayerAddMoney(cid, prize * 1000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[BOUNTY HUNTERS] You killed hunted player, so you gained the reward!")
end
end
return TRUE
end
:up::up::up:


Testowa?em to, dzia?a, wi?c nie wciska? mi tu kit?w
A je?li s? jakie? b??dy, zapraszam do tego tematu:Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\bounty-hunters.php on line 44

jak juz tak bump to bys to naprawil na wersje 0.3.4 bo sie zmienil pliki datebase.luaBUMP ^^ <znaki>
nDeathNie playerdeath =x Nie ma u mnie ?ADNEJ WZMIANKI o playerdeath!Otw?rz plik kill.lua, b?d? go stw?rz w creaturescripts/scripts
wklej do niego