MA
talkaction

[Talkaction] /mc - Em Português

Por Marcelo96, 20 de fev. de 2012 em Actions e Talkactions

script
9
1.7k
Marcelo96M
20 de fevereiro de 2012 às 17:29

Bom, esta talkaction mostra os jogadores que estão de mc (MULTI CLIENT)... Chega de papo vamos para o script.

 

Vá em [ data\talkactions\scripts ] Copie qual quer arquivo .lua cole e renomeie-o para multicheck.lua

 

Abra-o e coloque isto dentro

 

 

[color=#0000ff]function onSay(cid, words, param, channel)
local _ip = nil
if(param ~= '') then
_ip = tonumber(param)
if(not _ip or _ip == 0) then
local revertIp = doRevertIp(param)
if(not revertIp) then
local tid = getPlayerByNameWildcard(param)
if(not tid) then
_ip = nil
else
_ip = getPlayerIp(tid)
end
else
_ip = doConvertIpToInteger(revertIp)
end
end
end

local list, ips = {}, {}
local players = getPlayersOnline()
for i, pid in ipairs(players) do
local ip = getPlayerIp(pid)
local tmp = table.find(ips, ip)
if(tmp ~= nil and (not _ip or _ip == ip)) then
if(table.countElements(list, ip) == 0) then
list[players[tmp]] = ip
end

list[pid] = ip
end

table.insert(ips, ip)
end

if(table.maxn(list) > 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Jogadores on-line com o mesmo endereço IP:")
for pid, ip in pairs(list) do
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, getCreatureName(pid) .. " (" .. doConvertIntegerToIp(ip) .. ")")
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Atualmente não há jogadores com mesmo endereço IP.")
end

return true
end[/color]

 

Depois vá em [ data\talkactions ] e abra o Talkactions.lua e cole isto lá:

 

[color=#0000ff]<talkaction log="yes" words="/mc" access="3" event="script" value="multicheck.lua"/>[/color]

AlexandreKGA
26 de fevereiro de 2012 às 17:02

haha que legal

Marcelo96M
28 de fevereiro de 2012 às 00:48

haha que legal

Ae Valew (:

diarmaintD
04 de março de 2012 às 11:46

tem como fazer p 8.00 aki n funfo :/

05 de março de 2012 às 10:09

Muito simples. Ja vem no ot é so editar, mais legal gostei :D

SkyDangerousS
05 de março de 2012 às 10:12

O script é tão dificil.

Que é só editar a mensagem na função doPlayerSendTextMessage.

 

 

 

 

Mas vlw a tentativa,

05 de março de 2012 às 19:27

IPs iguais não caracteriza necessariamente multi-client.

BeekiB
06 de março de 2012 às 17:27

IPs iguais não caracteriza necessariamente multi-client.

 

é verdade, o cara pode estar em uma Lan House etc..

kelvinvictorK
07 de março de 2012 às 15:52

Realmente, ja levei ban jogando em lan house e quando perguntava o motivo eles diziam MC' *-*