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

Anti MC -- rep++

punish

New Member
Joined
May 20, 2010
Messages
56
Reaction score
0
Hello otlanders

Since a guy is magebombing my server i would like to get a anti mc script...

I have search around and only found for client 0.3+

I need a anti mc script for my tfs 0.2.7~

Rep++:$
 
thanks for your help...


I will test this. should i put it in creaturescripts?


Thanks!

You can create a new creaturescript or paste the following in login.lua

Code:
	for _, pid in ipairs(getPlayersOnline()) do
		if(getPlayerIp(cid) == getPlayerIp(pid)) then
			return false
		end
	end
 
[14/07/2010 13:23:33] Lua Script Error: [Test Interface]
[14/07/2010 13:23:33] data/creaturescripts/scripts/bomb.lua

[14/07/2010 13:23:33] data/creaturescripts/scripts/bomb.lua:1: attempt to call global 'getPlayersOnline' (a nil value)
[14/07/2010 13:23:33] Warning: [Event::checkScript] Can not load script. /scripts/bomb.lua


i used this

Code:
	for _, pid in ipairs(getPlayersOnline()) do
		if(getPlayerIp(cid) == getPlayerIp(pid)) then
			return false
		end
	end

creaturescripts

Code:
	<event type="login" name="PlayerLogin" script="bomb.lua"/>
 

Similar threads

  • Question Question
RevScripts BLOCK MC PVP
Replies
4
Views
667
Back
Top