• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

skrypt - logowanie z tego samego IP

dima0909

Banned User
Joined
Oct 18, 2012
Messages
271
Reaction score
0
Witam. Jak zrobić skrypt aby na moim OTS nie można było się logować więcej jak na 2 konta jednocześnie (z tego samego IP) ?
 
LUA:
local config = 2


function onLogin(cid)
	local counter, ip = 0, getPlayerIp(cid)
	for _, pid in ipairs(getPlayersOnline()) do
		if (ip == getPlayerIp(pid)) then
			counter = counter + 1
			if (counter >= config) then
				return false
			end
		end
	end
	
	return true
end
 
Stwórz nowy creaturevent typu login :].
 
Back
Top