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

Lua Skull System, count all kills script help

Ghazer

Member
Joined
Mar 13, 2009
Messages
350
Reaction score
6
Hello I need skull system but count all players killed not only last kill or injustifed, please help!


This is my actual script (I dont test this script I find in search and edit a little)
Lua:
local storage = 9000
 
function onKill(cid, target, lastHit)
	if isPlayer(target) and cid ~= target then
		local frags = math.max(0, getCreatureStorage(cid, storage)) + 1
		setPlayerStorageValue(cid, storage, frags)
			if frags >= 10 and frags < 100 then
		    doCreatureSetSkullType(cid, SKULL_YELLOW)
	    elseif frags >= 100 and frags < 200 then 
		    doCreatureSetSkullType(cid, SKULL_GREEN)
	    elseif frags >= 200 and frags < 500 then
		    doCreatureSetSkullType(cid, SKULL_WHITE)
	    elseif frags >= 500 and frags < 800 then
		    doCreatureSetSkullType(cid, SKULL_RED)
	    elseif frags > 800 then
		    doCreatureSetSkullType(cid, SKULL_BLACK)
	    end
	end
	return true
end
 
Back
Top