Login to ZARP





View BBCode Back »

if ( CLIENT ) then


	local function toggle()

		local on = LocalPlayer():GetInfoNum("deathrun_thirdperson" , 0)
	
		if on == 0 then
		
			LocalPlayer():PrintMessage( HUD_PRINTTALK, "Third person mode enabled." )
			LocalPlayer():ConCommand("deathrun_thirdperson 1")

		else
		
			LocalPlayer():PrintMessage( HUD_PRINTTALK, "Third person mode disabled." )
			LocalPlayer():ConCommand("deathrun_thirdperson 0")
		end

	end

	concommand.Add( "thirdperson_toggle", toggle )

end

if ( SERVER ) then

	hook.Add("PlayerSay", "ThirdPerson", function (ply, text, public)
		text = string.lower( text )
		if (text == "!3p" or text == "!thirdperson") then
				ply:ConCommand("thirdperson_toggle")
				return("")
		end
	end)
end

If they were to turn it off the normal way through the f1 menu I think it would bug but this should fix it :D

BBCode


Time to create page: 0.065 seconds

261 PLAYERS ONLINE

Connect to server View Gametracker DarkRP
10/127
Online
Connect to server View Gametracker Deathrun
0/40
Online
Connect to server View Gametracker TTT
0/47
Online
Connect to server View Gametracker Bhop
0/32
Online
Connect to server View Gametracker Surf
0/32
Online
Connect to server View Gametracker Prop Hunt
7/42
Online
Connect to server View Gametracker Sandbox
0/42
Online
Connect to server Discord
244/962
Online
Top