Morrison
Intermediate OT User
This script dont give money what is the problem?
PHP:
function onKill(cid, target)
if isPlayer(target) == TRUE then
if getPlayerIp(cid) ~= getPlayerIp(target) then
loot = 2152
item = doPlayerAddItem(cid,loot,1)
elseif getPlayerName(cid) == getPlayerName(target) then
doPlayerAddItem(cid,loot,3)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Tu no puedes recivir dinero al matar con tu misma IP.")
end
end
return TRUE
end