Guardian OT
New Member
- Joined
- Jan 8, 2011
- Messages
- 53
- Reaction score
- 0
we are try to get were u only drop the reward when u kill somebody and nothing else
here are script
But when you kill somebody it drops nothing
here are script
PHP:
function onKill(cid, target)
if isPlayer(target) == TRUE then
if getPlayerIp(cid) ~= getPlayerIp(target) then
loot = 2152
item = doPlayerAddItem(cid,loot,3)
elseif getPlayerName(cid) == getPlayerName(target) then
doPlayerAddItem(cid,loot,1)
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
Last edited: