tAuthentication
#9
i'm now trying to make it so you can't get hurt if you didn't login and it turns out realy good exept that i don't know how to disable fall damage and hunger damage. the mob and player damage is already done.
i added this for the mob and player damage:
function OnTakeDamage(Receiver, TDI)
	-- log the damage to server log:
	LOG("Damage: Raw ".. TDI.RawDamage .. ", Final:" .. TDI.FinalDamage)
 
	if ((TDI.Attacker ~= nil) and TDI.Attacker:IsA("cSpider")) then 
		TDI.FinalDamage = 0 	
	end
	if ((TDI.Attacker ~= nil) and TDI.Attacker:IsA("cZombie")) then
		TDI.FinalDamage = 0
	end
	if ((TDI.Attacker ~= nil) and TDI.Attacker:IsA("cCreeper")) then
		TDI.FinalDamage = 0
	end
	if ((TDI.Attacker ~= nil) and TDI.Attacker:IsA("cSkeleton")) then
		TDI.FinalDamage = 0
	end
	if ((TDI.Attacker ~= nil) and TDI.Attacker:IsA("cCavespider")) then
		TDI.FinalDamage = 0
	end
	if ((TDI.Attacker ~= nil) and TDI.Attacker:IsA("cBlaze")) then
		TDI.FinalDamage = 0
	end
	if ((TDI.Attacker ~= nil) and TDI.Attacker:IsA("cEnderman")) then
		TDI.FinalDamage = 0
	end
	if ((TDI.Attacker ~= nil) and TDI.Attacker:IsA("cGhast")) then
		TDI.FinalDamage = 0
	end
	if ((TDI.Attacker ~= nil) and TDI.Attacker:IsA("cMagmacube")) then
		TDI.FinalDamage = 0
	end
	if ((TDI.Attacker ~= nil) and TDI.Attacker:IsA("cSilverfish")) then
		TDI.FinalDamage = 0
	end
	if ((TDI.Attacker ~= nil) and TDI.Attacker:IsA("cSlime")) then
		TDI.FinalDamage = 0
	end
	if ((TDI.Attacker ~= nil) and TDI.Attacker:IsA("cWitch")) then
		TDI.FinalDamage = 0
	end
	if ((TDI.Attacker ~= nil) and TDI.Attacker:IsA("cZombiepigman")) then
		TDI.FinalDamage = 0
	end
	if ((TDI.Attacker ~= nil) and TDI.Attacker:IsA("cPlayer")) then
		TDI.FinalDamage = 0
	end
end
Reply
Thanks given by:


Messages In This Thread
tAuthentication - by NiLSPACE - 12-28-2012, 07:37 AM
RE: tAuthentication - by NiLSPACE - 12-29-2012, 12:19 AM
RE: tAuthentication - by NiLSPACE - 01-08-2013, 06:36 AM
RE: tAuthentication - by bearbin - 01-08-2013, 06:43 AM
RE: tAuthentication - by NiLSPACE - 01-08-2013, 06:55 AM
RE: tAuthentication - by bearbin - 01-08-2013, 05:40 PM
RE: tAuthentication - by NiLSPACE - 01-09-2013, 04:18 AM
RE: tAuthentication - by bearbin - 01-09-2013, 04:41 AM
RE: tAuthentication - by NiLSPACE - 01-27-2013, 12:38 AM
RE: tAuthentication - by bearbin - 01-27-2013, 01:04 AM
RE: tAuthentication - by bearbin - 01-27-2013, 03:50 AM
RE: tAuthentication - by NiLSPACE - 01-27-2013, 03:56 AM
RE: tAuthentication - by bearbin - 01-27-2013, 03:57 AM
RE: tAuthentication - by NiLSPACE - 01-27-2013, 03:57 AM
RE: tAuthentication - by ThuGie - 01-27-2013, 05:18 AM
RE: tAuthentication - by bearbin - 01-27-2013, 05:35 AM
RE: tAuthentication - by bearbin - 01-27-2013, 07:24 AM
RE: tAuthentication - by NiLSPACE - 01-27-2013, 07:54 AM
RE: tAuthentication - by ThuGie - 01-27-2013, 07:56 AM
RE: tAuthentication - by NiLSPACE - 01-27-2013, 08:07 AM
RE: tAuthentication - by ThuGie - 01-27-2013, 08:14 AM
RE: tAuthentication - by NiLSPACE - 01-27-2013, 08:24 AM
RE: tAuthentication - by bearbin - 01-27-2013, 05:04 PM
RE: tAuthentication - by bearbin - 01-27-2013, 06:10 PM
RE: tAuthentication - by NiLSPACE - 01-27-2013, 07:02 PM
RE: tAuthentication - by bearbin - 01-27-2013, 07:09 PM
RE: tAuthentication - by NiLSPACE - 01-27-2013, 07:11 PM
RE: tAuthentication - by bearbin - 01-27-2013, 09:18 PM
RE: tAuthentication - by FakeTruth - 01-28-2013, 12:44 AM
RE: tAuthentication - by NiLSPACE - 01-28-2013, 12:48 AM
RE: tAuthentication - by FakeTruth - 01-28-2013, 01:27 AM
RE: tAuthentication - by NiLSPACE - 01-28-2013, 01:35 AM
RE: tAuthentication - by xoft - 01-28-2013, 03:19 AM
RE: tAuthentication - by ThuGie - 01-28-2013, 04:16 AM
RE: tAuthentication - by FakeTruth - 01-28-2013, 05:49 AM
RE: tAuthentication - by NiLSPACE - 01-28-2013, 05:53 AM
RE: tAuthentication - by FakeTruth - 01-28-2013, 05:58 AM
RE: tAuthentication - by bearbin - 01-28-2013, 06:41 AM
RE: tAuthentication - by NiLSPACE - 01-29-2013, 12:48 AM
RE: tAuthentication - by FakeTruth - 01-29-2013, 05:46 PM
RE: tAuthentication - by ThuGie - 01-30-2013, 05:10 AM



Users browsing this thread: 1 Guest(s)