Can somone help me find some addons that work like this ??

Can you help me find the Below ??

something to auto broadcast messages like ?? - Hit F1 to see the rules
Also is there a buyable third person ??
And can someone link some buffs/perks for my Deathrun server ?? like speed or boosts or idk something ??

Thank you for helping !! ~ if so :wink:

Also i could use some help making my own Trail !!

1 more thing how do you change the default walk/run speed on a server???

  1. ULX can do this

if ( SERVER ) then

	function ThirdPersonPlayerSay( Player, Text, Public )

		if ( Player:IsValid() ) then

			if ( string.lower( Text ) == "/thirdperson" ) then

				Player:ConCommand( "ls_thirdperson 1" )

				return ""

			elseif ( string.lower( Text ) == "/firstperson" ) then

				Player:ConCommand( "ls_thirdperson 0" )

				return ""

			end

		end

	end
	hook.Add( "PlayerSay", "ThirdPersonPlayerSay", ThirdPersonPlayerSay )

end

LsThirdPerson = CreateConVar( "ls_thirdperson", "0", {

	FCVAR_ARCHIVE

} )

if ( CLIENT ) then

	-- You should only modify the following table values, unless you know what you're doing.

	local CameraOffset = { -- Allows you to offset the camera however you like.

		UD = 0, -- Up / Down. Use a positive number for up, negative for right. Default = 0
		RL = 0, -- Right / Left. Use a positive number for right, negative for left. Default = 0
		FB = -70 -- Forward / Backward. Use a positive number for forward ( Not sure why you would do it ), negative for backward. Default = -88

	}

	function ThirdPersonDrawPlayer()

		return LsThirdPerson:GetBool() and not ( LocalPlayer():InVehicle() ) or LocalPlayer():IsPlayingTaunt()

	end
	hook.Add( "ShouldDrawLocalPlayer", "ThirdPersonDrawPlayer", ThirdPersonDrawPlayer )

	function ThirdPersonCalcView( Player, Origin, Ang, Fov )

		if ( LsThirdPerson:GetBool() and not ( Player:InVehicle() ) ) then

			local TraceData = { }

			TraceData.start = Player:EyePos()
			TraceData.endpos = Player:EyePos() + ( Player:GetUp() * CameraOffset.UD ) + ( Player:GetRight() * CameraOffset.RL ) + ( Player:GetForward() * CameraOffset.FB )
			TraceData.filter = Player
			TraceData.mask = MASK_SOLID_BRUSHONLY

			local Trace = util.TraceLine( TraceData )

			local View = { }
			View.origin = Trace.HitPos + Player:GetForward() * 8
			View.angles = Player:GetAngles()
			View.fov = Fov

			return View

		end

	end
	hook.Add( "CalcView", "ThirdPersonCalcView", ThirdPersonCalcView )

end

Call the lua file ls_thirdperson and put it in lua/autorun/server. From there, use Pointshop code to allow users to toggle the convar.

  1. Here are some health boosts.

ITEM.Name = 'Health Boost 1'
ITEM.Price = 1
ITEM.Material = 'Put something here'
ITEM.NoPreview = true

function ITEM:OnEquip(ply)
	ply:SetHealth(125)
end

function ITEM:OnHolster(ply)
	ply:SetHealth(100)
end


ITEM.Name = 'Health Boost 2'
ITEM.Price = 1
ITEM.Material = 'Put something here'
ITEM.NoPreview = true

function ITEM:OnBuy(ply)
	if ply:PS_HasItem(hp1) then
		return true
	else
		ply:SendLua([[chat.AddText(Color(0,0,200), "You need Health Boost 1 to purchase this item!")]])
		return false
end

function ITEM:OnEquip(ply)
	if ply:PS_HasItem(hp1) then
		ply:SetHealth(150)
	else
		ply:SendLua([[chat.AddText(Color(0,0,200), "You need Health Boost 1 to Equip this item!")]])
		ply:SetHealth(100)
	end
end

function ITEM:OnHolster(ply)
	ply:SetHealth(100)
end

  1. Here’s a basic outline. Change the ITEM.Material to any .vmt you want to use.

ITEM.Name = 'Trail Name'
ITEM.Price = 1
ITEM.Material = 'something.vmt'

function ITEM:OnEquip(ply, modifications)
	ply.ElectricTrail = util.SpriteTrail(ply, 0, modifications.color, false, 15, 1, 4, 0.125, self.Material)
end

function ITEM:OnHolster(ply)
	SafeRemoveEntity(ply.ElectricTrail)
end

function ITEM:Modify(modifications)
	PS:ShowColorChooser(self, modifications)
end

function ITEM:OnModify(ply, modifications)
	SafeRemoveEntity(ply.ElectricTrail)
	self:OnEquip(ply, modifications)
end

  1. ply:SetWalkSpeed and ply:SetRunSpeed.

TY im trying it out Now !

[editline]31st December 2013[/editline]

but how do i make third person buyable ?

[editline]31st December 2013[/editline]

i also tried something like this but it didnt work ??

function SetSpeed(ply)
ply:SetWalkSpeed(1000)
ply:SetRunSpeed(1000)
end
hook.Add(“PlayerSpawn”, “SetSpeed”, SetSpeed)

[editline]31st December 2013[/editline]

Also my trail just has a Pink/Black pic in the shop :frowning:

[editline]31st December 2013[/editline]

srry but also when i do /thirdperson it doesnt say anything/or do anything

so many issues:(

[editline]31st December 2013[/editline]

:code_gs:

  1. Make a pointshop item that allows users to use that convar.
  2. Where did you put it?
  3. Does the trail appear properly though when a player buys it? If yes, ITEM.NoPreview = true. If no, you don’t have a proper .vmt.
  4. Made a mistake, should go in lua/autorun.

1.im typing /thirdperson and nothing happens and i need help with the convar.
2.nvm i dont need the speed.
3.No
4.OHHHH ill try that now

[editline]31st December 2013[/editline]

why dont i have a proper .vmt ??

[editline]31st December 2013[/editline]

TY thirdperson works :wink: i just need to mkae it buyable

[editline]31st December 2013[/editline]

one more thing how to i make it so thirdperson is zoomed out a little bit more if possible :code_gs:

Post the code you’re trying to use for the trail.

ITEM.Name = ‘NTG Appreciation Trail’
ITEM.Price = 800
ITEM.Material = ‘trails/ntg.vmt’

function ITEM:OnEquip(ply, modifications)
ply.ntgTrail = util.SpriteTrail(ply, 0, modifications.color, false, 15, 1, 4, 0.125, self.Material)
end

function ITEM:OnHolster(ply)
SafeRemoveEntity(ply.ntgTrail)
end

function ITEM:Modify(modifications)
PS:ShowColorChooser(self, modifications)
end

function ITEM:OnModify(ply, modifications)
SafeRemoveEntity(ply.ntgTrail)
self:OnEquip(ply, modifications)
end

[editline]31st December 2013[/editline]

:code_gs:

Is the file in materials/trails/ntg.vmt? Also, you don’t have to put :code_gs:.

o yea it is

Then you shouldn’t have an issue with missing textures. Are you sending the files to your client via FastDL/WorkshopDL?

o yea i dont have a FastDL theres the problem ??? how do you make one ?

[editline]31st December 2013[/editline]

also i try to make the health buff a one time use but nothing happens and the texture looks funky.

ITEM.Name = ‘Health Boost’
ITEM.Price = 800
ITEM.Material = ‘models/props_junk/GlassBottle01a.mdl’
ITEM.NoPreview = true
ITEM.SingleUse = true

function ITEM:OnEquip(ply)
ply:SetHealth(150)
end

function ITEM:OnHolster(ply)
ply:SetHealth(100)
end

Look up how to get FastDL.

?thats what you gave me.
and can u give me a link to a good video ?

[editline]31st December 2013[/editline]

btw thats the health buff not the trail ^

[editline]31st December 2013[/editline]

whats easier workshopDL or FastDL ??

You can read this on how to do FastDL. Just ignore the part where it talks about the cache folder.

Use ITEM.Model instead of ITEM.Material if you’re going to do it that way.

[editline]31st December 2013[/editline]

WorkshopDL is easier if you don’t have a webhost.

o ok also about the thirdperson how do you make it buyable i need help with a script

[editline]31st December 2013[/editline]

so ill i do is add sv_downloadurl “http://www.mysvdownloadurl.com/garrysmod/
sv_allowupload “0”
sv_allowdownload “0”

to my server.cfg ??

Yeah, except replace http://www.mysvdownloadurl.com/garrysmod/ with webhost.

i dont have a website ?? do i need one

Yes, you do if you want you use FastDL.

then how do i use workshopDL ??

also i need help with that thirdperson thing