Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
yeah was about to post this, i sadly don't remember the old main function arguments, thought onDeath would work (wanted it to only give it to the actual killer, not all players that did damage with onKill)
yeah was about to post this, i sadly don't remember the old main function arguments, thought onDeath would work (wanted it to only give it to the actual killer, not all players that did damage with onKill)
yeah was about to post this, i sadly don't remember the old main function arguments, thought onDeath would work (wanted it to only give it to the actual killer, not all players that did damage with onKill)
So we could alter the code like this...? And it would only work for the player who last hit?
OP will have to test.
Lua:
function onKill(cid, target, damage, flags)
if bit.band(flags, 1) == 1 then
if isPlayer(cid) and isPlayer(target) then
doPlayerAddItem(cid, 2152, 5)
end
end
return true
end