First of all, i'm sorry of my very first post is a help one, but i was retired with OTs...now i see this is the newest hotspot of c++ . . . so here we go!
i was trying to figure out some sort of anti-mc in lua, cuz the codes i've find, i mean insource ones... are too old...
this should replace ur login.lua at creaturescripts/scripts. . . since i don't need a deathlist, it's a pvp-e(war) server. . .
This code isn't mine!! sorry i don't remember the author...i kind of found it lost in a random post. . .
The problem is:
It's not working, and i have no clue whats wrong.
If someone got a Anti-MC system to spare, for lua, C++, for 8.4, or at least wanna gimme a helping tought how to create one or fix this one(i think its faster)
I'm waiting totally sad, cuz Mc's are ruining my war server.
i was trying to figure out some sort of anti-mc in lua, cuz the codes i've find, i mean insource ones... are too old...
this should replace ur login.lua at creaturescripts/scripts. . . since i don't need a deathlist, it's a pvp-e(war) server. . .
This code isn't mine!! sorry i don't remember the author...i kind of found it lost in a random post. . .
function onLogin(cid)
local players = getOnlinePlayers()
local x = 1
if #players > 0 then
for player,v in ipairs(players) do
if getPlayerIp(player) == getPlayerIp(cid) then
x = x+1
end
end
if x > 2 then
doRemoveCreature(cid)
end
end
return TRUE
end
The problem is:
It's not working, and i have no clue whats wrong.
If someone got a Anti-MC system to spare, for lua, C++, for 8.4, or at least wanna gimme a helping tought how to create one or fix this one(i think its faster)
I'm waiting totally sad, cuz Mc's are ruining my war server.
Last edited: