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

With [X] Frags Get [X] Skull ,

Akyrius

New Member
Joined
Mar 18, 2009
Messages
13
Reaction score
0
Well what i want is simple [ironic mode off]! well , when the [X] player get like 100 FRAGS , he gets the white skull , forever ! and when get 250 frags yellow skull , 350 green , 450 RED SKULL ! but without dropping everything and , 800 frags BLACK SKULL and he cant recieve double damage ! OBS : those skulls cant give them pz , and need to stay forever. it is for a war server , i saw this system in one war server , and its so perfect ! ,so please can any1 help me ? thanks :)
 
Probably won't work, but I tried atleast, and will try to fix the non working parts.
Lua:
function onKill(cid, target, lastHit)
local frags = getPlayerFrags(cid)
		if frags >= 150 then -- If player has 150 or more frags then he will gain a WS.
			doCreatureSetSkullType(cid, SKULL_WHITE)
		elseif frags >= 250 then --Same but with 250 frags and a Yellow skull.
			doCreatureSetSkullType(cid, SKULL_YELLOW)
		elseif frags >= 350 then -- Yadayadayada 350 frags = Green Skull
			doCreatureSetSkullType(cid, SKULL_GREEN)
		elseif frags >= 450 then -- 450 frags = RS
			doCreatureSetSkullType(cid, SKULL_RED)
		elseif frags >= 800 then -- Black Skull = 800 frags or more.
			doCreatureSetSkullType(cid, SKULL_BLACK)
		end
	return true
end
It's a creaturescript I believe, not sure tho.
I believe it will only set the skull as a decoration, kind of like the NPCs with skulls.
 
Back
Top