psilocibe
Member
- Joined
- Jul 9, 2007
- Messages
- 479
- Reaction score
- 8
Hail!
This script makes when the player dies to another player he drope an item in the event id 5925, how do I the script does not give the item in arenas or tiles pvp? where the player dies and should not drop anything? I like this work?
This script makes when the player dies to another player he drope an item in the event id 5925, how do I the script does not give the item in arenas or tiles pvp? where the player dies and should not drop anything? I like this work?
Code:
function onKill(cid, target, lastHit)
local item,count = 5925,0
if isPlayer(cid) and isPlayer(target) and getPlayerIp(target) ~= getPlayerIp(cid) then
doPlayerAddItem(cid, item, count)
end
return TRUE
end