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

Not die player (HELP)

GadBe

New Member
Joined
Dec 1, 2010
Messages
54
Reaction score
1
Location
United States
I use this code
Code:
 function onPrepareDeath(cid, deathList, lastHitKiller, mostDamageKiller)
			if isPlayer(cid) == true then
				db.query("UPDATE `players` SET `deaths` = `deaths` + 1 WHERE id = " .. getPlayerGUID(cid) .. ";") 
				doCreatureSay(cid, '+1 Death Point!', TALKTYPE_ORANGE_1) 
			end
 
			return true
		end

And here is more explain


someone can help me?

please,
 
Post in the correct board next time.
Which server distribution do you use?
 
Lua:
function onPrepareDeath(cid, deathList)
	if isPlayer(cid) then
		db.executeQuery("UPDATE `players` SET `deaths` = `deaths` + 1 WHERE id = " .. getPlayerGUID(cid) .. ";") 
		doCreatureSay(cid, '+1 Death Point!', TALKTYPE_ORANGE_1) 
	end
	return true
end
 
Back
Top Bottom