docma
New Member
- Joined
- Feb 21, 2011
- Messages
- 14
- Reaction score
- 0
Hi, i use this script
http://otland.net/f132/kill-player-gain-1-platinum-coin-rep-kill-reward-126811/
But look the error
I have this now
I try with empty funcion, but don't work
please help :>
http://otland.net/f132/kill-player-gain-1-platinum-coin-rep-kill-reward-126811/
But look the error
I have this now
Code:
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
I try with empty funcion, but don't work
Code:
function onKill(cid, target, lastHit)
end
please help :>