kito2
www.masteria.net
It is a onKill script, I have made some of it, and got one function from Jano.
The script checks the target is a player with level below 50, then it addEvent that removes the frag from the player:
PS: When you finish it, post your paypal e-mail to pay you or send me it via PM.
The script checks the target is a player with level below 50, then it addEvent that removes the frag from the player:
LUA:
function onKill(cid, target, lastHit)
if not isPlayer(target) then
return true
end
if (getPlayerLevel(target) < 50) then
addEvent()
return true
end
return true
end
function getKill(myID, targetID)
local res = db.getResult("SELECT k.id AS this FROM `killers` AS k INNER JOIN `player_deaths` AS pd ON k.death_id = pd.id INNER JOIN `player_killers` AS pk ON k.id = pk.kill_id WHERE pd.player_id = " .. targetID .. " AND pk.player_id = " .. myID .. " ORDER BY k.id DESC LIMIT 1;")
if (res:getID() ~= -1) then
local ret = (res:getDataInt("this"))
res:free()
return ret
end
return -1
end
PS: When you finish it, post your paypal e-mail to pay you or send me it via PM.