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

Death configurations

dmflucid

IDK?
Joined
Oct 3, 2008
Messages
41
Reaction score
0
Location
LA, CA
How can u make it so when someone dies it says owned in red letters or whatever color and then like fireworks around the person who got the frag?
 
data/creaturescripts/scripts/kill.lua
or:
data/creaturescripts/scripts/playerdeath.lua
in my war server.
playerdeath.lua:
PHP:
function onDeath(cid, corpse, killer)
	doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Ohh.. fuck! You died. Go kill your killer!")
	if isPlayer(killer) == TRUE then -- add frag for killer
		local frags = getPlayerFrags(killer)
		if frags == 5 then
			broadcastMessage(getCreatureName(killer) .. " is on killing spree! He killed 5 players!", MESSAGE_STATUS_CONSOLE_ORANGE)
		elseif frags == 10 then
			broadcastMessage(getCreatureName(killer) .. " is dominating! He killed 10 players!", MESSAGE_STATUS_CONSOLE_ORANGE)
		elseif frags == 25 then
			broadcastMessage(getCreatureName(killer) .. " is GODLIKE! He killed 25 players!", MESSAGE_STATUS_CONSOLE_ORANGE)
		elseif frags == 50 then
			broadcastMessage(getCreatureName(killer) .. " is UNSTOPPABLE!! He killed 50 players! DO SOMETHING!", MESSAGE_STATUS_CONSOLE_ORANGE)
		end
	end
end
 
Last edited:
Back
Top