owned
Excellent OT User
Heres my script:
function onKill(cid, target, lastHit)
if getPlayerParty(cid) == getPlayerParty(target) or getPlayerIp(cid) == getPlayerIp(target) then return doPlayerAddExp(cid, -0) and doPlayerSendTextMessage(cid, 20, "You have been punished for killing a player of the same IP.") and setPlayerStorageValue(cid, 3000, getPlayerStorageValue(cid, 3000)+1) end
return doPlayerAddItem(cid, 2152, 1)
end
how can i make this so that it will only apply this for players??
function onKill(cid, target, lastHit)
if getPlayerParty(cid) == getPlayerParty(target) or getPlayerIp(cid) == getPlayerIp(target) then return doPlayerAddExp(cid, -0) and doPlayerSendTextMessage(cid, 20, "You have been punished for killing a player of the same IP.") and setPlayerStorageValue(cid, 3000, getPlayerStorageValue(cid, 3000)+1) end
return doPlayerAddItem(cid, 2152, 1)
end
how can i make this so that it will only apply this for players??