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

Paying 10 USD for this script

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,764
Solutions
1
Reaction score
227
Location
Chile, Santiago
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:

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.
 
Back
Top