xLosT
Member
i need script to tfs 1.2 if kill player gain gold i have one but dont work and not erros in console
Code:
function onKill(cid, target, lastHit)
local reward = {
item = 2152, --ITEM ID!
count = 1 -- How many?
}
if cid ~= target and isPlayer(target) and getPlayerLevel(target) <= 132 then
if getPlayerIp(cid) ~= getPlayerIp(target) then
doPlayerAddItem(cid, 2152, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You cannot take reward by killing a player of the same IP.")
end
end
return TRUE
end