15
pedido

Notation Ao Matar Player Do Mesmo Ip

Por 1579091, 03 de jul. de 2012 em Scripts

notation
script
2
3.2k
15790911
03 de julho de 2012 às 13:21

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!!

VodkartV
03 de julho de 2012 às 13:52
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

Editado Julho 3 por Vodkart