function onKill(cid, target, lastHit) local storage,max = 11420,3 if isPlayer(cid) and isPlayer(target) and getPlayerIp(target) == getPlayerIp(cid) then if getPlayerStorageValue(cid,storage) == -1 then setPlayerStorageValue(cid,storage, 0) end if getPlayerStorageValue(cid, storage) >= max then setPlayerStorageValue(cid,storage,0) doAddAccountBanishment(getPlayerAccountId(cid), target, os.time() + 48 * 3600, 5, 2, 'Banido por Multi account', 0) doRemoveCreature(cid) return true end setPlayerStorageValue(cid,storage,getPlayerStorageValue(cid,storage)+1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Alerta] Você não pode matar players do mesmo IP, tome cuidado!") end return true end
15
2
3.2k
info
Grupo: Herói
Registrado: 20/05/10
Posts: 3.4k
Reputação: +1.5k
Gênero: Masculino

03 de julho de 2012 às 13:52
Editado Julho 3 por Vodkart

info
Grupo: Marquês
Registrado: 06/11/11
Posts: 1.1k
Reputação: +109
Char no Tibia: Stroked
Preciso de um script pro player tomar notation ao matar um player do mesmo ip, e ele ser avisado que tomou o notation e que ao chegar aos 3 notations tomar ban!!