vingo
Active Member
- Joined
- Oct 27, 2012
- Messages
- 464
- Reaction score
- 43
Is there any way to make this into a script? Another player kills someone from the same ip and gains no exp.
I have it for this.
I have it for this.
Code:
function onKill(cid, target, lastHit)
local reward = {
item = 2152, --ITEM ID!
count = 15 -- How many?
}
if cid ~= target and isPlayer(target) and getPlayerLevel(target) <= 132 then
if getPlayerIp(cid) ~= getPlayerIp(target) then
doPlayerAddItem(cid, 2160, 1)
doPlayerAddItem(cid, 9020, 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