hello otland.
i need to add in this script
when player kill some one he get 1 soul point + items
and when he die he lose 1 soul point..
wrong code sorry i am in harry
i need to add in this script
when player kill some one he get 1 soul point + items
and when he die he lose 1 soul point..
PHP:
function onKill(cid, target, lastHit)
local reward = {
item = 2152, --ITEM ID!
count = 1 -- How many?
}
if(isPlayer(cid) and isPlayer(target)) then
if getPlayerIp(cid) ~= getPlayerIp(target) then
doPlayerAddItem(cid, reward.item, reward.count)
else
doPlayerAddExperience(cid, -1000000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
end
end
return TRUE
end
wrong code sorry i am in harry