Deathrun Command Help

Hello, I tried to add a console command to deathrun but it came up with console command not found:

[lua]concommand.Add( “force”, force )
function force()
if ply:IsSuperAdmin() or ply:IsAdmin() then

		ply:SetTeam( 3 )
else
		print( "You are not super admin!" )
end

end
[/lua]

[editline]25th August 2014[/editline]

The team 3 is Runners


concommand.Add( "force", force, function force(ply)
		if ply:IsAdmin() then
			ply:SetTeam( 3 )
	else
			print( "You are not super admin!" )
	end
end)

Should work.

Thx

No problem.

If it doesn’t work, add me on steam.

well i see what you are doing there, But you are making a minor detour maybe it is easier for you to use this instead

[LUA]concommand.Add( “force”, function(ply)
if ply:IsAdmin() then
ply:SetTeam( 3 )
else
print( “You are not super admin!” )
end
end)[/LUA]

And it might be easier not to SetTeams but to set NWInt’s but that is just my opinion ; D Gl